Skip to content

Commit

Permalink
Fix missing path, print IPFS hash
Browse files Browse the repository at this point in the history
  • Loading branch information
SuzanneSoy committed Nov 20, 2023
1 parent f367723 commit 656f647
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Simple workflow for deploying static content to GitHub Pages
name: Update repo's Homepage field to the latest IPFS CID
name: Build the website

on:
# Runs on pushes targeting the default branch
push:
branches: ["!main"]
branches: "!main"
pull_request:
branches: ["!main"]
branches: "!main"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -31,5 +30,7 @@ jobs:
run: nix build
- name: Download IPFS
run: ./.github/github_install_ipfs.sh
- name: Print IPFS hahs
run: ./result/www/ipfs-add.sh --pin=false; cat result/ipfs.url
- name: Compare IPFS hashes
run: test "ipfs://$(./result/www/ipfs-add.sh --pin=false)" = "$(cat result/ipfs.url)"
run: PATH="/tmp/kubo:$PATH" test "ipfs://$(./result/www/ipfs-add.sh --pin=false)" = "$(cat result/ipfs.url)"

0 comments on commit 656f647

Please sign in to comment.