feat: zip Windows and Linux builds before release upload

This commit is contained in:
2026-06-18 17:05:08 +08:00
parent 9f654963ac
commit a896def3a6
+12 -6
View File
@@ -41,11 +41,14 @@ jobs:
mkdir -p build mkdir -p build
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_windows.exe godot --headless --export-release "Windows Desktop" build/tekton_armageddon_windows.exe
- name: Zip Windows Build
run: cd build && zip tekton_armageddon_windows.zip tekton_armageddon_windows.exe
- name: Upload Windows Artifact - name: Upload Windows Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: windows-build name: windows-build
path: build/tekton_armageddon_windows.exe path: build/tekton_armageddon_windows.zip
retention-days: 30 retention-days: 30
build-linux: build-linux:
@@ -77,11 +80,14 @@ jobs:
mkdir -p build mkdir -p build
godot --headless --export-release "Linux/X11" build/tekton_armageddon_linux.x86_64 godot --headless --export-release "Linux/X11" build/tekton_armageddon_linux.x86_64
- name: Zip Linux Build
run: cd build && zip tekton_armageddon_linux.zip tekton_armageddon_linux.x86_64
- name: Upload Linux Artifact - name: Upload Linux Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: linux-build name: linux-build
path: build/tekton_armageddon_linux.x86_64 path: build/tekton_armageddon_linux.zip
retention-days: 30 retention-days: 30
create-release: create-release:
@@ -103,8 +109,8 @@ jobs:
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: | files: |
windows-build/tekton_armageddon_windows.exe windows-build/tekton_armageddon_windows.zip
linux-build/tekton_armageddon_linux.x86_64 linux-build/tekton_armageddon_linux.zip
draft: false draft: false
prerelease: false prerelease: false
env: env:
@@ -115,7 +121,7 @@ jobs:
env: env:
API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }} API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }}
with: with:
source_file: 'windows-build/tekton_armageddon_windows.exe' source_file: 'windows-build/tekton_armageddon_windows.zip'
destination_repo: '${{ github.actor }}/tekton-updates' destination_repo: '${{ github.actor }}/tekton-updates'
destination_folder: 'v${{ steps.version.outputs.version }}' destination_folder: 'v${{ steps.version.outputs.version }}'
user_email: 'action@github.com' user_email: 'action@github.com'
@@ -127,7 +133,7 @@ jobs:
env: env:
API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }} API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }}
with: with:
source_file: 'linux-build/tekton_armageddon_linux.x86_64' source_file: 'linux-build/tekton_armageddon_linux.zip'
destination_repo: '${{ github.actor }}/tekton-updates' destination_repo: '${{ github.actor }}/tekton-updates'
destination_folder: 'v${{ steps.version.outputs.version }}' destination_folder: 'v${{ steps.version.outputs.version }}'
user_email: 'action@github.com' user_email: 'action@github.com'