forked from Xkeeper0/deltarune-viewer
-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (44 loc) · 2.08 KB
/
deploy-dr.yml
File metadata and controls
45 lines (44 loc) · 2.08 KB
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
name: Deploy to Netlify (Deltarune)
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-deltarune:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Steam and UTMT
uses: ./.github/actions/steam-utmt-setup
- name: Download Deltarune
run: |
mkdir -p ~/.local/share/Steam/config
echo "$STEAM_VDF" | base64 -d > ~/.local/share/Steam/config/config.vdf
steamcmd +@ShutdownOnFailedCommand +@sSteamCmdForcePlatformType windows +force_install_dir $(pwd)/game +login $STEAM_USERNAME +app_update 1671210 validate +quit
env:
STEAM_VDF: ${{ secrets.STEAM_VDF }}
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
- name: Extract Deltarune's code
run: |
./utmtcli/UndertaleModCli load game/data.win --scripts 'scripts/ExportCodeFormatted.csx'
./utmtcli/UndertaleModCli load game/chapter1_windows/data.win --scripts 'scripts/ExportCodeFormatted.csx'
./utmtcli/UndertaleModCli load game/chapter2_windows/data.win --scripts 'scripts/ExportCodeFormatted.csx'
./utmtcli/UndertaleModCli load game/chapter3_windows/data.win --scripts 'scripts/ExportCodeFormatted.csx'
./utmtcli/UndertaleModCli load game/chapter4_windows/data.win --scripts 'scripts/ExportCodeFormatted.csx'
mkdir decompiled-deltarune
mv game/Export_Code decompiled-deltarune/init
mv game/chapter1_windows/Export_Code decompiled-deltarune/ch1
mv game/chapter2_windows/Export_Code decompiled-deltarune/ch2
mv game/chapter3_windows/Export_Code decompiled-deltarune/ch3
mv game/chapter4_windows/Export_Code decompiled-deltarune/ch4
- name: Build
run: python3 build.py deltarune
- name: Publish
uses: netlify/actions/cli@master
with:
args: deploy --prod --dir=out/deltarune --message="GitHub Actions" --timeout=3600
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_DR }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}