-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.41 KB
/
release.yml
File metadata and controls
51 lines (42 loc) · 1.41 KB
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
name: Release Workflow
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Bump Version
id: bump_version
uses: anothrNick/github-tag-action@1.67.0
with:
default_bump: minor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
- name: Zip Files for Windows
run: |
zip -r ${{ github.workspace }}/release_windows.zip ba_data lib ba_root && \
(cd windows && zip -r ${{ github.workspace }}/release_windows.zip *)
working-directory: ${{ github.workspace }}
- name: Zip Files for Linux
run: |
zip -r ${{ github.workspace }}/release_linux.zip ba_data ba_root && \
(cd linux-x86_64 && zip -r ${{ github.workspace }}/release_linux.zip *)
working-directory: ${{ github.workspace }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
release_windows.zip
release_linux.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.bump_version.outputs.tag }}
- name: Update Release Notes
run: echo "::set-output name=body::$(cat CHANGELOG.md)"
id: get_changelog
if: success() && steps.create_release.outputs.release_id