-
-
Notifications
You must be signed in to change notification settings - Fork 6
73 lines (68 loc) · 2.24 KB
/
engine_assets_tpk.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
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Engine Assets Tpk
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' #once per week
# The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs
#
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Tpk Repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build /p:Configuration=Release
working-directory: ./Tpk.ConsoleApp/
- name: Checkout DocumentationDumps Repository
uses: actions/checkout@v4
with:
repository: 'AssetRipper/DocumentationDumps'
path: DocumentationDumps
- name: Make files executable
shell: bash
run: chmod +x ./Tpk.ConsoleApp/bin/Release/net6.0/AssetRipper.Tpk.ConsoleApp
- name: Make tpk file
shell: bash
run: ./Tpk.ConsoleApp/bin/Release/net6.0/AssetRipper.Tpk.ConsoleApp --engine-assets ./DocumentationDumps/EngineAssets
- name: Upload Uncompressed file
uses: actions/upload-artifact@v4
with:
name: uncompressed_file
path: ./uncompressed.tpk
if-no-files-found: error
- name: Upload Lz4 file
uses: actions/upload-artifact@v4
with:
name: lz4_file
path: ./lz4.tpk
if-no-files-found: error
- name: Upload Lzma file
uses: actions/upload-artifact@v4
with:
name: lzma_file
path: ./lzma.tpk
if-no-files-found: error
- name: Upload Brotli file
uses: actions/upload-artifact@v4
with:
name: brotli_file
path: ./brotli.tpk
if-no-files-found: error