Pin content to ipfs (#101)

* Pin content to ipfs

* Update scripts/ipfsPrep.sh

* Add actual packages

* Update .github/workflows/push-master.yml
This commit is contained in:
Jaco Greeff
2021-02-15 08:15:51 +01:00
committed by GitHub
parent c139a5fb31
commit 0fcbabc7db
6 changed files with 634 additions and 12 deletions
+20
View File
@@ -25,6 +25,26 @@ jobs:
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
# publish to ipfs when a release is detected
ipfs:
strategy:
matrix:
step: ['build:release:ipfs']
name: ${{ matrix.step }}
if: "startsWith(github.event.head_commit.message, '[CI Skip] release/stable') && github.repository == 'polkadot-js/phishing'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.step }}
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
run: |
yarn install --immutable | grep -v 'YN0013'
./scripts/ipfsPrep.sh
yarn ${{ matrix.step }}
dummy:
runs-on: ubuntu-latest
steps: