Skip to content

feat: add STADX

feat: add STADX #106

Workflow file for this run

name: "Deploy and Pin"
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
test:
uses: "./.github/workflows/tests.yml"
deploy:
needs: "test"
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: "Install Bun"
uses: "oven-sh/setup-bun@v1"
- name: "Install Node.js dependecies"
run: "bun install --frozen-lockfile"
- name: "Build project"
run: "bun run build"
- name: "IPFS: upload bundle and pin"
id: "upload"
uses: "aquiladev/ipfs-action@master"
with:
path: "build/sablier-community.tokenlist.json"
service: "infura"
pinName: "tokenlist"
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
- name: "IPFS hash summary"
run: |
echo "Successfully deployed on IPFS: [${{ steps.upload.outputs.hash }}](https://cloudflare-ipfs.com/ipfs/${{
steps.upload.outputs.hash }})"
- name: "Update Cloudflare DNS with latest IPFS hash"
env:
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CLOUDFLARE_GATEWAY_ID }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: "sablier-labs/action-cloudflare-web3-gateway@main"
with:
cid: ${{ steps.upload.outputs.hash }}