Skip to content

ci: use dappnodesdk bump-upstream and add Pinata secrets for IPFS has… #21

ci: use dappnodesdk bump-upstream and add Pinata secrets for IPFS has…

ci: use dappnodesdk bump-upstream and add Pinata secrets for IPFS has… #21

Workflow file for this run

name: "Main"
on:
repository_dispatch:
pull_request:
push:
paths-ignore:
- "README.md"
jobs:
build-test:
runs-on: ipfs-dev-gateway
name: Build test
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npx @dappnode/dappnodesdk build github-action build --content_provider=http://10.200.200.7:5001 --timeout 1h
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
release:
name: Release
runs-on: ipfs-dev-gateway
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'repository_dispatch'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Publish
run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"