-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 2.18 KB
/
create-package.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
59
60
name: Create Package
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
create-package:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Download Jump King content
uses: Skippeh/steamfetch-action@v1
with:
username: "${{ secrets.STEAM_USER }}"
password: "${{ secrets.STEAM_PASS }}"
dir: "${{ github.workspace }}/game-files"
os: windows
app: 1061090
osarch: 32
# Download all dll/exe files in root directory
files: |
regex:^[^\/\s]+\.(exe|dll)$
- name: Download JKMP.Patcher
uses: suisei-cn/actions-download-file@v1
with:
url: https://github.com/Jump-King-Modding-Platform/JKMP.Patcher/releases/download/v1.0.0/JKMP.Patcher.zip
target: "JKMP.Patcher"
- name: Unzip JKMP.Patcher
shell: bash
run: unzip JKMP.Patcher/JKMP.Patcher.zip -d ./JKMP.Patcher
- name: Run JKMP.Patcher
shell: bash
run: ./JKMP.Patcher/JKMP.Patcher.exe -g ./game-files --ci
- name: Download AssemblyReflector
uses: suisei-cn/actions-download-file@v1
with:
url: https://github.com/Jump-King-Modding-Platform/AssemblyReflector/releases/download/latest/Build.zip
target: "AssemblyReflector"
- name: Unzip AssemblyReflector
shell: bash
run: unzip AssemblyReflector/Build.zip -d ./AssemblyReflector
- name: Run AssemblyReflector
shell: bash
run: ./AssemblyReflector/AssemblyReflector.exe -i ./game-files/JumpKing.exe -o ./pkg/ref/any/
- name: Create package file
uses: papeloto/action-zip@v1
with:
files: ./pkg
recursive: true
dest: JKMP.GameDependencies.nupkg
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: JKMP.GameDependencies.nupkg
path: JKMP.GameDependencies.nupkg
retention-days: 1
- name: Publish nuget package
run: dotnet nuget push JKMP.GameDependencies.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate