forked from shimamura-sakura/KandaAliceTL-tool-old
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.4 KB
/
build.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
on:
workflow_call:
concurrency:
group: build
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Commit Information
id: commit
run: |
echo "commit_id=commit-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "commit_message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
- name: Create Patch
run: |
sudo apt-get install zip unzip -y
unzip files/files.zip -d files
pushd scripts
python main_create.py
popd
zip -r out/patch.zip out/01003bd013e30000/
- name: Upload patch
uses: actions/upload-artifact@v4
with:
name: patch
path: |
out/01003bd013e30000/
- name: GitHub Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "out/patch.zip"
name: "${{ steps.commit.outputs.commit_message }}"
body: |
本页面下方的链接为自动构建并发布的开发版本补丁。**此版本补丁可能存在较多问题,仅供测试使用。**
prerelease: true
tag: publish
token: ${{ secrets.GITHUB_TOKEN }}