Skip to content

Commit 2bbcdd7

Browse files
authored
Merge pull request #160 from dappnode/refactor/use-dappnode-build-hash
ci: use dappnode-build-hash reusable workflow
2 parents 110a721 + fbfa7a3 commit 2bbcdd7

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/build.yml

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

.github/workflows/main.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
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'
2516
steps:
26-
- uses: actions/checkout@v2
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)