Skip to content

fix: added proposals list data polling #141

fix: added proposals list data polling

fix: added proposals list data polling #141

Workflow file for this run

name: Deploy to ipfs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
push:
branches: ['main', "feat/update"]
env:
NEXT_PUBLIC_DEPLOY_FOR_IPFS: true
API_URL: "https://api.onaave.com"
jobs:
ipfs_deploy:
runs-on: ubuntu-latest
environment:
name: 'IPFS'
url: https://${{ steps.pinata.outputs.hash }}.ipfs.dweb.link/
outputs:
pinata_hash: '${{ steps.pinata.outputs.hash }}'
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.6.0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm build
- name: Deploy to ipfs
id: pinata
uses: aave/pinata-action@a3409e26f4cb859a2d9984109317caac53db5f68
with:
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
PIN_ALIAS: 'app-aave-governance-v3-${{ github.head_ref || github.ref }}'
BUILD_LOCATION: './out'
CID_VERSION: 1
- name: Amend ipfs link to release
uses: actions/github-script@v6
if: contains(github.event.head_commit.message, 'chore(main):')
with:
retries: 3
script: |
const { data } = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo,
})
github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: data.id,
body: data.body + `\n <hr> \n Ipfs deployment: ` + `[${{steps.pinata.outputs.uri}}](${{steps.pinata.outputs.uri}})`,
})