-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (49 loc) · 1.62 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: release
on:
release:
types: [created]
jobs:
release_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run compile.sh
run: |
cd ..
mkdir temp
cd temp
sudo sh ${{ github.workspace }}/compile.sh ${{ github.workspace }}
- name: Zip (Linux)
run: |
cd ${{ github.workspace }}/../temp/AgDev_build/
zip -r "${{ github.workspace }}/../temp/AgDev_release_${{ github.ref_name }}_linux.zip" .
ls
- name: Upload Linux ZIP to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ github.workspace }}/../temp/AgDev_release_${{ github.ref_name }}_linux.zip
tags: true
release_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Run compile.bat
run: |
cd ..
mkdir temp
cd temp
${{ github.workspace }}\compile.bat ${{ github.workspace }}
- name: Zip (Windows)
run: |
cd ${{ github.workspace }}\..\temp\AgDev_build
powershell -Command "Compress-Archive * AgDev_release_${{ github.ref_name }}_windows.zip"
dir
- name: Upload Windows ZIP to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ github.workspace }}\..\temp\AgDev_build\AgDev_release_${{ github.ref_name }}_windows.zip
tags: true