Skip to content

Commit d180d47

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 5b501e5 commit d180d47

2 files changed

Lines changed: 18 additions & 11 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: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
name: "Main"
22
on:
3-
pull_request:
43
push:
54
branches:
65
- "main"
76
paths-ignore:
87
- "README.md"
8+
workflow_dispatch:
99

1010
jobs:
11-
build-test:
12-
runs-on: ubuntu-latest
13-
name: Build test
14-
if: github.event_name != 'push'
15-
steps:
16-
- uses: actions/checkout@v4
17-
- run: npx @dappnode/dappnodesdk build --skip_save
18-
1911
release:
2012
name: Release
2113
runs-on: ubuntu-latest
22-
if: github.event_name == 'push'
14+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
2315
steps:
24-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v7
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: "24"
2520
- name: Publish
2621
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset
2722
env:

0 commit comments

Comments
 (0)