Skip to content

Commit eece321

Browse files
committed
ci: use dappnode-build-hash reusable workflow
Replaces the inlined build step (which used `--skip_save` and never posted an IPFS hash on PRs) with a thin caller for the new `dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master` reusable workflow. `build.yml` now handles both push and PR events; `main.yml` is reduced to the release job only. Also upgrades `actions/checkout` to v7 and adds Node 24 setup for the release job.
1 parent b5b8b3f commit eece321

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
paths-ignore: ["README.md"]
8+
9+
jobs:
10+
build:
11+
uses: dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master
12+
secrets: inherit

‎.github/workflows/main.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
name: "Release"
1+
name: "Main"
22
on:
3-
workflow_dispatch:
43
push:
54
branches:
65
- "master"
7-
- "main"
86
- "v[0-9]+.[0-9]+.[0-9]+"
9-
107
paths-ignore:
118
- "README.md"
9+
workflow_dispatch:
1210

1311
jobs:
1412
release:
1513
name: Release
1614
runs-on: ubuntu-latest
15+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
1716
steps:
18-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "24"
1921
- name: Publish
2022
run: npx @dappnode/dappnodesdk publish minor --dappnode_team_preset --timeout 2h
2123
env:

0 commit comments

Comments
 (0)