Skip to content

Commit

Permalink
add registry to release instead of commit
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc committed Oct 7, 2024
1 parent 74920cb commit 6bdc0a8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13,491 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/aggregate_signals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pip install pyyaml
- name: Aggregate Signals
run: python .github/scripts/merge_all.py ./signals ./registry
run: python .github/scripts/merge_all.py ./signals .

- name: Cache Rust-Script
uses: actions/cache@v4
Expand All @@ -42,9 +42,4 @@ jobs:
run: sudo apt update && sudo apt-get install clang -y

- name: Validate Aggregated Signals
run: .github/scripts/validate.rs registry/registry.json

- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: aggregated signals
run: .github/scripts/validate.rs registry.json
19 changes: 17 additions & 2 deletions .github/workflows/upload_ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,24 @@ jobs:
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/merge_all.py ./signals ./output

- name: Upload to IPFS
id: upload
uses: aquiladev/[email protected]
with:
path: ./signals
path: ./output
service: pinata
pinata_api_key: ${{ secrets.PINATA_API_KEY }}
pinata_secret_api_key: ${{ secrets.PINATA_SECRET_API_KEY }}
Expand All @@ -26,4 +39,6 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: checksum.txt
files: |
checksum.txt
./output/registry.json
Loading

0 comments on commit 6bdc0a8

Please sign in to comment.