-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (60 loc) · 1.95 KB
/
main.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
name: release
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_release:
name: build_release
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: bundle linux
uses: andrewcrypto777/[email protected]
with:
path: src
- name: bundle windows
uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3
with:
path: src
- name: Get Previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Get next minor version
id: semvers
uses: WyriHaximus/github-action-next-semvers@v1
with:
version: ${{ steps.previoustag.outputs.tag }}
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.semvers.outputs.patch }}
tag_name: v${{ steps.semvers.outputs.patch }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload linux artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/dist/linux/main
asset_name: wart-wallet-linux-${{ steps.semvers.outputs.patch }}
asset_content_type: application/octet-stream
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src/dist/windows/main.exe
asset_name: wart-wallet-windows-${{ steps.semvers.outputs.patch }}.exe
asset_content_type: application/octet-stream