-
-
Notifications
You must be signed in to change notification settings - Fork 379
33 lines (30 loc) · 976 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
on:
workflow_dispatch:
jobs:
buildluna:
uses: ./.github/workflows/buildluna.yml
loadversion:
runs-on: windows-latest
outputs:
version: ${{ steps.loadversion.outputs.version }}
steps:
- uses: actions/checkout@v4
- id: loadversion
run: python .github/scripts/build_lunatranslator.py loadversion | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
release:
runs-on: windows-latest
needs: [buildluna,loadversion]
steps:
- uses: actions/download-artifact@v4
with:
path: build
- uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.loadversion.outputs.version }}
files: |
build/LunaTranslator_x86_winxp/LunaTranslator_x86_winxp.zip
build/LunaTranslator_x86/LunaTranslator_x86.zip
build/LunaTranslator/LunaTranslator.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}