-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (26 loc) · 1.08 KB
/
release.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
name: Releases
on:
push:
tags:
- 'release-v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: little-core-labs/[email protected]
id: tagName
- name: compile peer package
run: |
mv docker-method public-mainnet-peer-package
tar -zcvf public-mainnet-peer-package-${{steps.tagName.outputs.tag}}.tar.gz public-mainnet-peer-package
sha256sum public-mainnet-peer-package-${{steps.tagName.outputs.tag}}.tar.gz > public-mainnet-peer-package-${{steps.tagName.outputs.tag}}.tar.gz.sha256
- name: compile api package
run: |
mv docker-api public-mainnet-api-package
tar -zcvf public-mainnet-api-package-${{steps.tagName.outputs.tag}}.tar.gz public-mainnet-api-package
sha256sum public-mainnet-api-package-${{steps.tagName.outputs.tag}}.tar.gz > public-mainnet-api-package-${{steps.tagName.outputs.tag}}.tar.gz.sha256
- uses: ncipollo/release-action@v1
with:
artifacts: "public-mainnet-*-package-*.tar.gz*"
token: ${{ secrets.GITHUB_TOKEN }}