Skip to content

Commit

Permalink
Deploy snapshots to surge
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jan 7, 2024
1 parent 301c9cd commit 143fd2b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ jobs:
"$url"
deployWWW:
if: github.event_name == 'release'
concurrency: ci-${{ github.ref }}
environment:
name: github-pages
Expand Down Expand Up @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit 143fd2b

Please sign in to comment.