2024-04-26 05:49:49 +08:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
2024-04-27 19:56:54 +08:00
|
|
|
workflow_dispatch:
|
2024-04-26 05:53:33 +08:00
|
|
|
|
2024-04-26 05:49:49 +08:00
|
|
|
jobs:
|
2024-11-06 23:45:31 +08:00
|
|
|
buildluna:
|
|
|
|
uses: ./.github/workflows/buildluna.yml
|
2024-11-02 19:55:32 +08:00
|
|
|
loadversion:
|
|
|
|
runs-on: windows-latest
|
|
|
|
outputs:
|
|
|
|
version: ${{ steps.loadversion.outputs.version }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- id: loadversion
|
2024-11-08 17:33:38 +08:00
|
|
|
run: python .github/scripts/build_lunatranslator.py loadversion | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
|
2024-11-06 06:46:35 +08:00
|
|
|
|
2024-11-02 19:55:32 +08:00
|
|
|
release:
|
|
|
|
runs-on: windows-latest
|
2024-11-06 23:45:31 +08:00
|
|
|
needs: [buildluna,loadversion]
|
2024-11-02 19:55:32 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
path: build
|
|
|
|
- uses: softprops/action-gh-release@v2
|
2024-04-26 05:49:49 +08:00
|
|
|
with:
|
2024-11-02 19:55:32 +08:00
|
|
|
tag_name: ${{ needs.loadversion.outputs.version }}
|
2024-04-28 00:50:54 +08:00
|
|
|
files: |
|
2024-11-15 10:57:41 +08:00
|
|
|
build/LunaTranslator_x86_winxp/LunaTranslator_x86_winxp.zip
|
2024-11-06 23:45:31 +08:00
|
|
|
build/LunaTranslator_x86/LunaTranslator_x86.zip
|
|
|
|
build/LunaTranslator/LunaTranslator.zip
|
2024-04-26 05:49:49 +08:00
|
|
|
env:
|
2024-11-02 19:55:32 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|