-
Notifications
You must be signed in to change notification settings - Fork 263
50 lines (41 loc) · 1.25 KB
/
pre-release-artifacts.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
name: Build Pre Release
on:
workflow_dispatch:
inputs:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Read tag_latest and Save build info
id: tag_latest
env:
BUILD_TYPE: Beta
GITHUB_REPO: ${{ github.repository }}
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
python ./.github/scripts/read_version_and_save_build_info.py
- name: Package Jar
run: |
chmod +x package.sh
./package.sh
chmod +x .github/scripts/package_launcher.sh
./.github/scripts/package_launcher.sh
- name: ZIP files
env:
VERSION_NUMBER: ${{ steps.tag_latest.outputs.value }}
run: |
chmod +x .github/scripts/gen_zip_for_pre_release.sh
./.github/scripts/gen_zip_for_pre_release.sh
- name: Upload artifacts(no jre)
uses: actions/upload-artifact@v4
with:
name: BilibiliDown.v${{steps.tag_latest.outputs.value}}.pre-release
path: ./BilibiliDown.v${{steps.tag_latest.outputs.value}}.pre-release.zip