Skip to content

Commit

Permalink
change to on release
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc committed Oct 3, 2024
1 parent f622767 commit f458367
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/upload_ipfs.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: Upload IPFS
on:
push:
branches:
- main
tags:
- "v*"

jobs:
upload-ipfs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: aquiladev/ipfs-action@master

- name: Upload to IPFS
id: upload
uses: aquiladev/[email protected]
with:
path: ./signals
service: pinata
pinata_api_key: ${{ secrets.PINATA_API_KEY }}
pinata_secret_api_key: ${{ secrets.PINATA_SECRET_API_KEY }}
verbose: false

- name: Create Checksum File
run: echo $ {{ steps.upload.outputs.hash }} > checksum.txt && cat checksum.txt

- name: Add Checksum File
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: checksum.txt

0 comments on commit f458367

Please sign in to comment.