Skip to content

Commit bdbf92e

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 32d2680 commit bdbf92e

2 files changed

Lines changed: 18 additions & 12 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 & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
name: "Main"
22
on:
3-
pull_request:
43
push:
54
branches:
6-
- "main"
75
- "master"
86
- "v[0-9]+.[0-9]+.[0-9]+"
97
paths-ignore:
108
- "README.md"
9+
workflow_dispatch:
1110

1211
jobs:
13-
build-test:
14-
runs-on: ubuntu-latest
15-
name: Build test
16-
if: github.event_name != 'push'
17-
steps:
18-
- uses: actions/checkout@v6
19-
- run: npx @dappnode/dappnodesdk build --skip_save
20-
2112
release:
2213
name: Release
2314
runs-on: ubuntu-latest
24-
if: github.event_name == 'push'
15+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
2516
steps:
26-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@v7
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "24"
2721
- name: Publish
2822
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset
2923
env:

0 commit comments

Comments
 (0)