Upload artifacts to github actions workflow after building

This commit is contained in:
Exidex 2025-02-10 20:58:35 +01:00
parent ff1c1b8754
commit 5dade37cb4
No known key found for this signature in database
GPG key ID: AC63AA86DD4F2D45
5 changed files with 40 additions and 1 deletions

View file

@ -11,14 +11,19 @@ jobs:
uses: ./.github/workflows/setup-linux.yaml
with:
command: npm run build-linux-project --workspace @project-gauntlet/build
upload-artifact: 'true'
secrets: inherit
build-macos:
uses: ./.github/workflows/setup-macos.yaml
with:
command: npm run build-macos-project --workspace @project-gauntlet/build
upload-artifact: 'true'
secrets: inherit
build-windows:
uses: ./.github/workflows/setup-windows.yaml
with:
command: npm run build-windows-project --workspace @project-gauntlet/build
upload-artifact: 'true'
secrets: inherit

View file

@ -6,6 +6,9 @@ on:
command:
required: true
type: string
upload-artifact:
default: false
type: boolean
github-release-id:
type: string
@ -40,3 +43,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
GITHUB_RELEASE_ID: ${{ inputs.github-release-id }}
- uses: actions/upload-artifact@v4
if: ${{ inputs.upload-artifact }}
with:
name: 'gauntlet-x86_64-linux.tar.gz'
path: 'target/x86_64-unknown-linux-gnu/release/archive/gauntlet-x86_64-linux.tar.gz'
if-no-files-found: 'error'
retention-days: 7

View file

@ -6,6 +6,9 @@ on:
command:
required: true
type: string
upload-artifact:
default: false
type: boolean
github-release-id:
type: string
@ -52,3 +55,11 @@ jobs:
APPLE_SIGNING_KEY_PEM: ${{ secrets.APPLE_SIGNING_KEY_PEM }}
APPLE_SIGNING_CERT_PEM: ${{ secrets.APPLE_SIGNING_CERT_PEM }}
APP_STORE_CONNECT_KEY: ${{ secrets.APP_STORE_CONNECT_KEY }}
- uses: actions/upload-artifact@v4
if: ${{ inputs.upload-artifact }}
with:
name: 'gauntlet-aarch64-macos.dmg'
path: 'target/aarch64-apple-darwin/release/gauntlet-aarch64-macos.dmg'
if-no-files-found: 'error'
retention-days: 7

View file

@ -6,6 +6,9 @@ on:
command:
required: true
type: string
upload-artifact:
default: false
type: boolean
github-release-id:
type: string
@ -38,3 +41,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
GITHUB_RELEASE_ID: ${{ inputs.github-release-id }}
- uses: actions/upload-artifact@v4
if: ${{ inputs.upload-artifact }}
with:
name: 'gauntlet-x86_64-windows.msi'
path: 'target/x86_64-pc-windows-msvc/release/gauntlet-x86_64-windows.msi'
if-no-files-found: 'error'
retention-days: 7