-
Notifications
You must be signed in to change notification settings - Fork 14
58 lines (55 loc) · 1.53 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
57
58
name: Releases
# 触发条件:git tag
on:
push:
tags:
- 'v*'
#on: workflow_dispatch
jobs:
release-windows:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK and Maven
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'
- name: Build executable
shell: powershell
run: sh deploy-windows.sh
- name: Create Release
uses: ncipollo/release-action@v1
with:
# 供用户下载使用的最终产物
artifacts: "dist/SoNovel_win.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}
# release-linux:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Set up JDK and Maven
# uses: actions/setup-java@v4
# with:
# distribution: 'corretto'
# java-version: '17'
# # - name: Set up mvnd
# # run: |
# # curl -s "https://get.sdkman.io" | bash
# # source "$HOME/.sdkman/bin/sdkman-init.sh"
# # sdk version
# # sdk install mvnd
# # mvnd -v
# - name: Build executable
# run: sh deploy-linux.sh
# - name: Create Release
# uses: ncipollo/release-action@v1
# with:
# artifacts: "dist/SoNovel_linux.tar.gz"
# token: ${{ secrets.GITHUB_TOKEN }}