Skip to content

Commit c4c3eb9

Browse files
committed
Add workflows
1 parent 44f868a commit c4c3eb9

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

.github/workflows/auto_check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Bump upstream version
2+
3+
on:
4+
schedule:
5+
- cron: "00 */4 * * *"
6+
push:
7+
branches:
8+
- "main"
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: npx @dappnode/dappnodesdk github-action bump-upstream --use-variants
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
20+
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build test
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- run: npx @dappnode/dappnodesdk github-action build --variant gnosis
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
15+
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Main"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
bump:
6+
description: "Bump type, must be: patch"
7+
required: true
8+
repository_dispatch:
9+
pull_request:
10+
push:
11+
branches:
12+
- "main"
13+
- "master"
14+
- "v[0-9]+.[0-9]+.[0-9]+"
15+
paths-ignore:
16+
- "README.md"
17+
18+
jobs:
19+
build-test:
20+
runs-on: ubuntu-latest
21+
name: Build test
22+
if: github.event_name != 'push'
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- run: npx @dappnode/dappnodesdk build --skip_save --variant gnosis
27+
28+
release:
29+
name: Release
30+
runs-on: ubuntu-latest
31+
if: github.event_name == 'push' || github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch'
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Publish
35+
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset --timeout 1h --all-variants
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"

0 commit comments

Comments
 (0)