-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (56 loc) · 2.34 KB
/
pack.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
name: Install
on:
workflow_dispatch:
inputs:
LeviLamina:
description: 'LeviLamina version'
required: true
default: '0.10.2'
LSE:
description: 'LegacyScriptEngine version'
required: true
default: '0.5.2'
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
permissions:
contents: write
runs-on: windows-latest
steps:
- name: Check Out
uses: actions/checkout@v4
- name: Install LeviLamina
run: |
7z x -oLeviLamina 1.zip
cd LeviLamina
../lip.exe install -y github.com/LiteLDev/LeviLamina@${{ github.event.inputs.LeviLamina }}
del bedrock_server.exe.bak
del bedrock_server_mod.exe
del bedrock_server.pdb
- name: Install LSE
run: |
cd LeviLamina
../lip install -y gitea.litebds.com/LiteLDev/legacy-script-engine-lua@${{ github.event.inputs.LSE }}
../lip install -y gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs@${{ github.event.inputs.LSE }}
../lip install -y gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs@${{ github.event.inputs.LSE }}
../lip install -y gitea.litebds.com/LiteLDev/legacy-script-engine-python@${{ github.event.inputs.LSE }}
../lip install -y github.com/LiteLDev/LegacyScriptEngine@${{ github.event.inputs.LSE }}
cd ../
- name: Pack files
run: |
cd LeviLamina
7z a -tzip "LeviLamina-${{ github.event.inputs.LeviLamina }} with LSE-${{ github.event.inputs.LSE }}.zip" .\
copy "LeviLamina-${{ github.event.inputs.LeviLamina }} with LSE-${{ github.event.inputs.LSE }}.zip" ..\
del "LeviLamina-${{ github.event.inputs.LeviLamina }} with LSE-${{ github.event.inputs.LSE }}.zip"
cd ..
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: "LeviLamina-${{ github.event.inputs.LeviLamina }} with LSE-${{ github.event.inputs.LSE }}.zip"
name: LeviLamina-${{ github.event.inputs.LeviLamina }}&LSE-${{ github.event.inputs.LSE }}
tag_name: LeviLamina-${{ github.event.inputs.LeviLamina }}&LSE-${{ github.event.inputs.LSE }}
body: |
LeviLamina版本: ${{ github.event.inputs.LeviLamina }}
LSE版本: ${{ github.event.inputs.LSE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}