From 5dade37cb4cd6ff11b64e6ab977eecf3847c3036 Mon Sep 17 00:00:00 2001 From: Exidex <16986685+exidex@users.noreply.github.com> Date: Mon, 10 Feb 2025 20:58:35 +0100 Subject: [PATCH] Upload artifacts to github actions workflow after building --- .github/workflows/build.yaml | 5 +++++ .github/workflows/setup-linux.yaml | 11 +++++++++++ .github/workflows/setup-macos.yaml | 11 +++++++++++ .github/workflows/setup-windows.yaml | 12 ++++++++++++ CHANGELOG.md | 2 +- 5 files changed, 40 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4d52eea..19aa618 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/setup-linux.yaml b/.github/workflows/setup-linux.yaml index a02813a..1da039b 100644 --- a/.github/workflows/setup-linux.yaml +++ b/.github/workflows/setup-linux.yaml @@ -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 diff --git a/.github/workflows/setup-macos.yaml b/.github/workflows/setup-macos.yaml index 98104f3..09eb52e 100644 --- a/.github/workflows/setup-macos.yaml +++ b/.github/workflows/setup-macos.yaml @@ -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 diff --git a/.github/workflows/setup-windows.yaml b/.github/workflows/setup-windows.yaml index 380d448..7ea891d 100644 --- a/.github/workflows/setup-windows.yaml +++ b/.github/workflows/setup-windows.yaml @@ -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 + diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c158c2..e3823fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ For changes in `@project-gauntlet/tools` see [separate CHANGELOG.md](https://git - For entrypoint types `command` and `view` - in Plugin Manifest or in Settings UI TODO - For entrypoint type `entrypoint-generator` - in Settings UI TODO - Action ID can also be found in Plugin Manifest - - Action ID option also supports special values + - Action ID option also accepts special values - `:primary` - to run primary action of the entrypoint - `:secondary` - to run secondary action of the entrypoint - Slightly improved --help documentation of CLI command