32 lines
904 B
YAML
Raw Normal View History

name: Release
on:
2024-04-27 19:56:54 +08:00
workflow_dispatch:
2024-04-26 05:53:33 +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
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-06 23:45:31 +08:00
build/LunaTranslator_x86/LunaTranslator_x86.zip
build/LunaTranslator/LunaTranslator.zip
env:
2024-11-02 19:55:32 +08:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}