-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (39 loc) · 1.18 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Main"
on:
workflow_dispatch:
inputs:
version_type:
type: choice
description: 'Type of version increment: patch, minor, or major'
required: true
default: patch
options:
- patch
- minor
- major
jobs:
build-test:
runs-on: ubuntu-latest
name: Build test
if: github.event_name != 'push'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npx @dappnode/[email protected] build --skip_save
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Publish
run: npx @dappnode/[email protected] publish ${{ github.event.inputs.version_type }} --github-release --eth_provider=${{ secrets.ETH_PROVIDER }} --content_provider=pinata
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }}
DEVELOPER_ADDRESS: "0xdAD64d07A318476dc48257a0bB53a8e9a26C6B33"