Skip to content

Commit

Permalink
Create workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
freitzzz authored Nov 25, 2022
1 parent a043c7c commit ffe5321
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish folder to IPFS via web3.storage
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: web3-storage/add-to-web3@v2
id: web3
with:
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
path_to_add: ./<my_awesome_folder>

# "bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am"
- run: echo ${{ steps.web3.outputs.cid }}

# "https://dweb.link/ipfs/bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am"
- run: echo ${{ steps.web3.outputs.url }}

0 comments on commit ffe5321

Please sign in to comment.