diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f5ec9ab --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,11 @@ +name: Build + +on: + workflow_dispatch: + push: + paths-ignore: ["README.md"] + +jobs: + build: + uses: dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master + secrets: inherit diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86ce580..ff4f321 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,35 +1,22 @@ name: "Main" on: - repository_dispatch: push: + branches: + - "main" paths-ignore: - "README.md" + repository_dispatch: + workflow_dispatch: jobs: - build-hash: - runs-on: ubuntu-latest - name: Build and post IPFS hash - if: github.event_name == 'push' && github.ref != 'refs/heads/main' - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 - with: - node-version: "22" - - run: npx @dappnode/dappnodesdk github-action build - 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@v6 + - uses: actions/checkout@v7 - uses: actions/setup-node@v6 with: - node-version: "22" + node-version: "24" - name: Log in to GitHub Container Registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Publish