-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.01 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
42
# .github/workflows/main.yml
name: Liman Render Engine Build
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Getting Go Binaries
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Build Application
run: |
go get -u && go mod tidy
go build -o liman_render
- name: Run UPX
uses: crazy-max/ghaction-upx@v3
with:
version: latest
files: |
./liman_render
args: -fq
- name: Create Zip
run: |
zip -r /tmp/liman_render-${{ github.run_number }}.zip liman_render
- name: Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
files: /tmp/liman_render-${{ github.run_number }}.zip
name: "Release ${{ github.run_number }}"
tag_name: "release.${{ github.run_number }}"