Skip to content

Commit d67eea9

Browse files
committed
Added build pipeline
1 parent 7d28f04 commit d67eea9

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Steins;Gate 0 [StyledHorribleFix]
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
workflow_dispatch:
8+
9+
jobs:
10+
install-dependencies:
11+
name: Install dependencies
12+
runs-on: windows-2025
13+
steps:
14+
- name: Install Aegisub
15+
run: |
16+
Invoke-WebRequest -Uri https://github.com/TypesettingTools/Aegisub/releases/download/v3.4.2/Aegisub-3.4.2-portable.zip -OutFile "./Aegisub-3.4.2-portable.zip"
17+
Expand-Archive -Path ./Aegisub-3.4.2-portable.zip -DestinationPath .
18+
Remove-Item -Path ./Aegisub-3.4.2-portable.zip
19+
- name: Install Aegisub-cli
20+
id: install-aegisub-cli
21+
run: |
22+
Invoke-WebRequest -Uri https://github.com/Myaamori/aegisub-cli/releases/download/db0e4f9/aegisub-cli.exe -OutFile "./aegisub-portable/aegisub-cli.exe"
23+
echo "aegisub-cli-path=${{ github.workspace }}/aegisub_portable/aegisub-cli.exe" >> "$env:GITHUB_OUTPUT"
24+
- name: Install Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: 3.13
28+
- name: Install ssa_cleanup_tool
29+
id: install-ssa-cleanup-tool
30+
run: |
31+
Invoke-WebRequest -Uri https://github.com/PringlesGang/ssa-cleanup-tool/archive/refs/tags/v2.0.0.zip -OutFile "./ssa-cleanup-tool.zip"
32+
Expand-Archive -Path ./ssa-cleanup-tool.zip -DestinationPath .
33+
Remove-Item -Path ./ssa-cleanup-tool.zip
34+
echo "ssa-cleanup-tool-path=${{ github.workspace }}/ssa-cleanup-tool-2.0.0/ssa-cleanup-tool.py" >> "$env:GITHUB_OUTPUT"
35+
36+
build:
37+
name: Build subtitles
38+
needs: install-dependencies
39+
runs-on: windows-2025
40+
permissions:
41+
contents: read
42+
steps:
43+
- name: Checkout Git repository
44+
uses: actions/checkout@v4
45+
- name: Setup builder configuration
46+
uses: jsdaniell/create-json@v1.2.3
47+
with:
48+
name: "builder_config.json"
49+
json: '{"python": "python", "ssa_cleanup_tool": "${{ steps.install-ssa-cleanup-tool.outputs.ssa-cleanup-tool-path }}", "aegisub-cli": "${{ steps.install-aegisub-cli.outputs.aegisub-cli-path }}"}'
50+
- name: Run build script
51+
run: ./build.ps1
52+
- name: Upload artifact
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: Steins;Gate 0 [StyledHorribleFix]
56+
path: |
57+
./full
58+
./ss
59+
./auto-mkv-subs.ps1
60+
./auto-mkv-subs.sh
61+
./README.md

0 commit comments

Comments
 (0)