Skip to content

Commit ac9cbb3

Browse files
authored
Add GitHub Actions workflow for build and release
1 parent 9816804 commit ac9cbb3

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Main"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- "main"
7+
- "master"
8+
- "v[0-9]+.[0-9]+.[0-9]+"
9+
paths-ignore:
10+
- "README.md"
11+
12+
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@v3
19+
- run: npx @dappnode/dappnodesdk build --skip_save
20+
21+
release:
22+
name: Release
23+
runs-on: ubuntu-latest
24+
if: github.event_name == 'push'
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Publish
28+
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"

0 commit comments

Comments
 (0)