-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.1 KB
/
upload_ipfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Upload IPFS
on:
push:
tags:
- "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/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