Skip to content

Commit 8a77324

Browse files
committed
Added build pipeline
1 parent 7d28f04 commit 8a77324

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

.github/workflows/pipeline.yml

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

0 commit comments

Comments
 (0)