mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Upload artifacts to github actions workflow after building
This commit is contained in:
parent
ff1c1b8754
commit
5dade37cb4
5 changed files with 40 additions and 1 deletions
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
11
.github/workflows/setup-linux.yaml
vendored
11
.github/workflows/setup-linux.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
11
.github/workflows/setup-macos.yaml
vendored
11
.github/workflows/setup-macos.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
12
.github/workflows/setup-windows.yaml
vendored
12
.github/workflows/setup-windows.yaml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue