-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ipfs upload to upload registry file not folder
- Loading branch information
Showing
1 changed file
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,44 +2,44 @@ name: Upload IPFS | |
on: | ||
push: | ||
tags: | ||
- "v*" | ||
- "v*" | ||
|
||
jobs: | ||
upload-ipfs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11.2' | ||
|
||
- name: Install Python Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
- name: Aggregate Signals | ||
run: python .github/scripts/aggregate_signals.py ./signals ./output | ||
|
||
- name: Upload to IPFS | ||
id: upload | ||
uses: aquiladev/[email protected] | ||
|
||
with: | ||
path: ./output | ||
service: pinata | ||
pinataKey: ${{ secrets.PINATA_API_KEY }} | ||
pinataSecret: ${{ secrets.PINATA_SECRET_API_KEY }} | ||
|
||
- 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 | ||
./output/registry.json | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11.2" | ||
|
||
- name: Install Python Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
- name: Aggregate Signals | ||
run: python .github/scripts/aggregate_signals.py ./signals ./output | ||
|
||
- name: Upload to IPFS | ||
id: upload | ||
uses: aquiladev/[email protected] | ||
|
||
with: | ||
path: ./output/registry.json | ||
service: pinata | ||
pinataKey: ${{ secrets.PINATA_API_KEY }} | ||
pinataSecret: ${{ secrets.PINATA_SECRET_API_KEY }} | ||
|
||
- 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 | ||
./output/registry.json |