Skip to content

Commit a10d956

Browse files
authored
Merge pull request #29 from dappnode/refactor/use-dappnode-build-hash
ci: use dappnode-build-hash reusable workflow
2 parents 8874dfc + 0455854 commit a10d956

2 files changed

Lines changed: 13 additions & 23 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
name: Build test
1+
name: Build
2+
23
on:
34
workflow_dispatch:
45
push:
5-
pull_request:
6+
paths-ignore: ["README.md"]
67

78
jobs:
89
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v4
12-
- run: npx @dappnode/dappnodesdk github-action build --variant sepolia
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
16-
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
10+
uses: dappnode/workflows/.github/workflows/dappnode-build-hash.yml@master
11+
with:
12+
variants: "sepolia"
13+
secrets: inherit

‎.github/workflows/main.yml‎

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
11
name: "Main"
22
on:
3-
pull_request:
4-
workflow_dispatch:
53
push:
64
branches:
7-
- "master"
85
- "main"
96
- "v[0-9]+.[0-9]+.[0-9]+"
107
paths-ignore:
118
- "README.md"
9+
repository_dispatch:
10+
workflow_dispatch:
1211

1312
jobs:
14-
build-test:
15-
runs-on: ubuntu-latest
16-
name: Build test
17-
if: github.event_name != 'push'
18-
steps:
19-
- uses: actions/checkout@v4
20-
- run: npx @dappnode/dappnodesdk build --skip_save --variant sepolia
21-
2213
release:
2314
name: Release
2415
runs-on: ubuntu-latest
25-
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
2616
steps:
27-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: "24"
2821
- name: Publish
2922
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset --all-variants
3023
env:

0 commit comments

Comments
 (0)