From 071c9971a75993ef26f1a1c4412f336e28ba2371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artis=20Bl=C5=ABms?= Date: Sat, 6 Aug 2022 20:52:08 +0300 Subject: [PATCH 1/2] feat: adds github deploy workflow --- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..8058a06 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: deploy + +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 16.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + yarn + yarn build + + - name: Deploy + diff --git a/.gitignore b/.gitignore index 557f97c..80c26be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ .cache/ public +.idea \ No newline at end of file From e20bbe29fdbc0c2b417a28d340058b3f9050d2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artis=20Bl=C5=ABms?= Date: Sun, 7 Aug 2022 22:34:25 +0300 Subject: [PATCH 2/2] fix: removes failing step --- .github/workflows/deploy.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8058a06..8f7a70b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,7 +23,4 @@ jobs: - name: Build run: | yarn - yarn build - - - name: Deploy - + yarn build \ No newline at end of file