2024-02-21 12:23:23 +01:00
|
|
|
|
name: Deploy to IPFS
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
# Trigger the workflow every time you push to the `main` branch
|
|
|
|
|
# Using a different branch name? Replace `main` with your branch’s name
|
2024-02-23 23:33:56 +01:00
|
|
|
|
#push:
|
|
|
|
|
# branches: [ beta ]
|
2024-02-21 12:23:23 +01:00
|
|
|
|
|
|
|
|
|
# Allow this job to clone the repo and create a page deployment
|
|
|
|
|
permissions:
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build_and_deploy:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout your repository using git
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
|
- uses: denoland/setup-deno@v1
|
|
|
|
|
- run: npm install
|
|
|
|
|
- run: npm run build
|
|
|
|
|
- run: npm run cleanup-flags
|
|
|
|
|
- uses: aquiladev/ipfs-action@master
|
|
|
|
|
with:
|
|
|
|
|
path: ./dist
|
|
|
|
|
service: pinata
|
|
|
|
|
pinataKey: ${{ secrets.PINATA_KEY }}
|
|
|
|
|
pinataSecret: ${{ secrets.PINATA_SECRET }}
|