Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bring back publish to web3.storage #73

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 15 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
- run: pnpm test
- run: pnpm build
- name: Add to web3.storage
uses: web3-storage/add-to-web3@v2
uses: web3-storage/add-to-web3@v3
id: ipfs
with:
path_to_add: ${{ env.outputDir }}
web3_token: ${{ secrets.WEB3_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
secret_key: ${{ secrets.W3_PRINCIPAL }}
proof: ${{ secrets.W3_PROOF }}
- name: Deploy preview build to Cloudflare Pages
uses: mathiasvr/command-output@v1.1.0
id: cloudflare
Expand Down Expand Up @@ -77,18 +76,17 @@ jobs:
- run: pnpm lint
- run: pnpm test
- run: pnpm build
# - name: Add to web3.storage
# uses: web3-storage/add-to-web3@v2
# id: ipfs
# with:
# path_to_add: ${{ env.outputDir }}
# web3_token: ${{ secrets.WEB3_TOKEN }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Update IPFS DNSLink https://web3.storage
# run: npx dnslink-cloudflare --record _dnslink --domain web3.storage --link /ipfs/${{ steps.ipfs.outputs.cid }}
# env:
# CF_API_TOKEN: ${{ secrets.CF_TOKEN }}
- name: Add to web3.storage
uses: web3-storage/add-to-web3@v3
id: ipfs
with:
path_to_add: ${{ env.outputDir }}
secret_key: ${{ secrets.W3_PRINCIPAL }}
proof: ${{ secrets.W3_PROOF }}
- name: Update IPFS DNSLink https://web3.storage
run: npx dnslink-cloudflare --record _dnslink --domain web3.storage --link /ipfs/${{ steps.ipfs.outputs.cid }}
env:
CF_API_TOKEN: ${{ secrets.CF_TOKEN }}
- name: Deploy preview build to Cloudflare Pages
uses: mathiasvr/command-output@v1.1.0
id: cloudflare
Expand All @@ -98,20 +96,12 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
- name: Add Preview URLs as Job Summary
# run: |
# echo "
# ### Deployed
# ⁂ https://web3.storage

# ### Snapshot urls 🔗✨
# - 🙂 https://${{ steps.ipfs.outputs.cid }}.ipfs.w3s.link
# - ⛅️ ${{ steps.cloudflare_url.outputs.stdout }}
# " >> $GITHUB_STEP_SUMMARY
run: |
echo "
### Deployed
⁂ https://web3.storage

### Snapshot urls 🔗✨
- 🙂 https://${{ steps.ipfs.outputs.cid }}.ipfs.w3s.link
- ⛅️ ${{ steps.cloudflare_url.outputs.stdout }}
" >> $GITHUB_STEP_SUMMARY
Loading