From 143fd2b9929e5c5d64065327529d8f01442ce9d0 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Sun, 7 Jan 2024 11:12:57 +0100 Subject: [PATCH] Deploy snapshots to surge --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15315df..61e0f62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,7 +126,6 @@ jobs: "$url" deployWWW: - if: github.event_name == 'release' concurrency: ci-${{ github.ref }} environment: name: github-pages @@ -160,7 +159,16 @@ jobs: with: node-version: 18 + - name: Deploy to surge.sh + uses: dswistowski/surge-sh-action@v1 + with: + domain: "anser-snapshot.surge.sh" + project: "./dist/" + login: ${{ secrets.SURGE_LOGIN }} + token: ${{ secrets.SURGE_TOKEN }} + - name: Upload to ipfs + if: github.event_name == 'release' run: | npm install -g @web3-storage/w3cli mkdir -p /home/runner/.config/w3access @@ -172,6 +180,7 @@ jobs: cat deploy.log - name: Write ipfs link to release description + if: github.event_name == 'release' run: | set -e echo "${GITHUB_EVENT_PATH}"