-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 939 Bytes
/
LinuxBuild.yml
File metadata and controls
38 lines (32 loc) · 939 Bytes
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
name: Build Linux Runtime
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
linux-runtime:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build Linux runtime image
run: ./gradlew runtime
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} # 仅用于插件初始化
- name: 7z Compact
run: |
cd build/image
7z a -mx=9 javaows-linux.zip ./*
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ github.run_number }}
name: v${{ github.run_number }}
files: build/image/javaows-linux.zip
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}