-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (43 loc) · 1.29 KB
/
releaseService.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
42
43
44
45
46
47
48
49
50
name: Release Service
on:
workflow_dispatch:
push:
tags:
- 'v*.*'
jobs:
BuildPackage:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Prepare StartOS SDK
uses: Start9Labs/sdk@v1
- name: Checkout services repository
uses: actions/checkout@v3
- name: Build the service package
run: |
git submodule update --init --recursive
start-sdk init
make
- name: Generate sha256 checksum
run: |
sha256sum mutiny-wallet.s9pk > mutiny-wallet.s9pk.sha256
- name: Generate changelog
run: |
echo "## What's Changed" > change-log.txt
yq e '.release-notes' manifest.yaml >> change-log.txt
echo "## SHA256 Hash" >> change-log.txt
echo '```' >> change-log.txt
sha256sum mutiny-wallet.s9pk >> change-log.txt
echo '```' >> change-log.txt
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
name: Mutiny Wallet ${{ github.ref_name }}
body_path: change-log.txt
files: |
mutiny-wallet.s9pk
mutiny-wallet.s9pk.sha256