feat: zip Windows and Linux builds before release upload
This commit is contained in:
@@ -41,11 +41,14 @@ jobs:
|
||||
mkdir -p build
|
||||
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
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-build
|
||||
path: build/tekton_armageddon_windows.exe
|
||||
path: build/tekton_armageddon_windows.zip
|
||||
retention-days: 30
|
||||
|
||||
build-linux:
|
||||
@@ -77,11 +80,14 @@ jobs:
|
||||
mkdir -p build
|
||||
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
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-build
|
||||
path: build/tekton_armageddon_linux.x86_64
|
||||
path: build/tekton_armageddon_linux.zip
|
||||
retention-days: 30
|
||||
|
||||
create-release:
|
||||
@@ -103,8 +109,8 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
windows-build/tekton_armageddon_windows.exe
|
||||
linux-build/tekton_armageddon_linux.x86_64
|
||||
windows-build/tekton_armageddon_windows.zip
|
||||
linux-build/tekton_armageddon_linux.zip
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
@@ -115,7 +121,7 @@ jobs:
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }}
|
||||
with:
|
||||
source_file: 'windows-build/tekton_armageddon_windows.exe'
|
||||
source_file: 'windows-build/tekton_armageddon_windows.zip'
|
||||
destination_repo: '${{ github.actor }}/tekton-updates'
|
||||
destination_folder: 'v${{ steps.version.outputs.version }}'
|
||||
user_email: 'action@github.com'
|
||||
@@ -127,7 +133,7 @@ jobs:
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.PUBLIC_REPO_PAT }}
|
||||
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_folder: 'v${{ steps.version.outputs.version }}'
|
||||
user_email: 'action@github.com'
|
||||
|
||||
Reference in New Issue
Block a user