Skip to content

Commit 593729f

Browse files
authored
Merge pull request #165 from dappnode/refactor/use-dappnode-build-hash
ci: use dappnode-build-hash reusable workflow
2 parents 666f7df + 0ff7811 commit 593729f

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths-ignore: ["README.md"]
7+
8+
jobs:
9+
build:
10+
uses: dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master
11+
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:
10+
repository_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@v4
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'
2516
steps:
26-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
18+
- uses: actions/setup-node@v6
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)