-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dbc45be
Showing
689 changed files
with
171,520 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
ORIGINAL_FILES_URL: | ||
required: true | ||
|
||
concurrency: | ||
group: build | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
fetch-depth: 1 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: Xzonn/ChokuretsuTranslationUtility | ||
ref: master | ||
fetch-depth: 1 | ||
path: tools | ||
- name: Get tools commit id | ||
id: get-tools-commit-id | ||
run: | | ||
Push-Location tools/ | ||
Write-Output "id=$(git rev-parse HEAD)" >> $env:GITHUB_OUTPUT | ||
Pop-Location | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- run: pip install Pillow | ||
- name: Cache original files | ||
id: cache-original-files | ||
uses: actions/cache@v3 | ||
with: | ||
path: original_files/ | ||
key: original-files-${{ secrets.ORIGINAL_FILES_URL }} | ||
- name: Cache tools | ||
id: cache-tools | ||
uses: actions/cache@v3 | ||
with: | ||
path: tools/HaruhiChokuretsuCLI/bin/Release/ | ||
key: tools-${{ steps.get-tools-commit-id.outputs.id }} | ||
- name: Build patch | ||
env: | ||
ORIGINAL_FILES_URL: "${{ secrets.ORIGINAL_FILES_URL }}" | ||
PYTHONUTF8: 1 | ||
run: | | ||
Try | ||
{ | ||
if (dotnet-script -h) {} | ||
} | ||
Catch | ||
{ | ||
dotnet tool install -g dotnet-script | ||
} | ||
./build.ps1 | ||
- name: Upload patch | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: patch | ||
path: | | ||
out/* | ||
- name: GitHub Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: "patch.zip" | ||
name: "《凉宫春日的串联》汉化" | ||
body: "[补丁应用工具](https://github.com/Xzonn/NitroPatcher/releases/latest/)" | ||
prerelease: true | ||
tag: publish | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Build on push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '*.md' | ||
- 'assets/' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
secrets: | ||
ORIGINAL_FILES_URL: ${{ secrets.ORIGINAL_FILES_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.vscode/ | ||
maintenance/ | ||
original_files/ | ||
patched_files/ | ||
temp_files/ | ||
out/ | ||
|
||
tools | ||
|
||
*.bat | ||
*.exe | ||
*.inc | ||
*.nds | ||
*.zip |
Oops, something went wrong.