From 8abfd80b8379dcff9c15deae84d78ed886e452e0 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 7 Oct 2020 15:25:30 +0200 Subject: [PATCH 1/2] add deploy to skynet step in github action --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37b7178b..3f369910 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: skynet-webportal CI -on: [push] +on: [pull_request] jobs: build: @@ -30,6 +30,12 @@ jobs: env: GATSBY_API_URL: "https://siasky.net" + - name: "Deploy to Skynet" + uses: kwypchlo/deploy-to-skynet-action@v1 + with: + upload-dir: packages/webapp/public + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Cypress run uses: cypress-io/github-action@v1 env: From bbbc83aeb3f0ec2a94649b95cc6c043035dfdb19 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 7 Oct 2020 16:05:41 +0200 Subject: [PATCH 2/2] use v1.0.0 instead of v1 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f369910..8bb5e14f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: GATSBY_API_URL: "https://siasky.net" - name: "Deploy to Skynet" - uses: kwypchlo/deploy-to-skynet-action@v1 + uses: kwypchlo/deploy-to-skynet-action@v1.0.0 with: upload-dir: packages/webapp/public github-token: ${{ secrets.GITHUB_TOKEN }}