Skip to content

Commit c3971b3

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 110a721 commit c3971b3

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,29 +1,24 @@
11
name: "Main"
22
on:
33
repository_dispatch:
4-
pull_request:
54
push:
65
branches:
76
- "master"
87
- "v[0-9]+.[0-9]+.[0-9]+"
98
paths-ignore:
109
- "README.md"
10+
workflow_dispatch:
1111

1212
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@v2
19-
- run: npx @dappnode/dappnodesdk build --skip_save
20-
2113
release:
2214
name: Release
2315
runs-on: ubuntu-latest
24-
if: github.event_name == 'push'
16+
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
2517
steps:
26-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v7
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "24"
2722
- name: Publish
2823
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset
2924
env:

0 commit comments

Comments
 (0)