From f6227679348de735800536da6f27edff70ad8f64 Mon Sep 17 00:00:00 2001 From: Warittorn Cheevachaipimol Date: Thu, 26 Sep 2024 14:14:33 +0700 Subject: [PATCH] add upload ipfs --- .github/workflows/aggregate_signals.yml | 2 +- .github/workflows/upload_ipfs.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/upload_ipfs.yml diff --git a/.github/workflows/aggregate_signals.yml b/.github/workflows/aggregate_signals.yml index f2d014b..20a1041 100644 --- a/.github/workflows/aggregate_signals.yml +++ b/.github/workflows/aggregate_signals.yml @@ -22,7 +22,7 @@ jobs: pip install pyyaml - name: Aggregate Signals - run: python .github/scripts/merge_all.py ./signals . + run: python .github/scripts/merge_all.py ./signals ./registry - name: Cache Rust-Script uses: actions/cache@v4 diff --git a/.github/workflows/upload_ipfs.yml b/.github/workflows/upload_ipfs.yml new file mode 100644 index 0000000..9a8b2e1 --- /dev/null +++ b/.github/workflows/upload_ipfs.yml @@ -0,0 +1,18 @@ +name: Upload IPFS +on: + push: + branches: + - main + +jobs: + upload-ipfs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: aquiladev/ipfs-action@master + with: + path: ./signals + service: pinata + pinata_api_key: ${{ secrets.PINATA_API_KEY }} + pinata_secret_api_key: ${{ secrets.PINATA_SECRET_API_KEY }} + verbose: false