From 37a541d4721665a844d38d73ac2ec79323457765 Mon Sep 17 00:00:00 2001 From: Xeek Date: Sat, 3 Feb 2024 15:53:58 -0600 Subject: [PATCH] fix: build workflow should inherit secrets from release-please --- .github/workflows/publish.yml | 65 ---------------------------- .github/workflows/release-please.yml | 2 + 2 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index d4a9bdc..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Publish - -permissions: write-all - -on: - workflow_dispatch: - inputs: - version: - description: 'Version Number for Release' - required: true - configuration: - description: 'Build Configuration' - required: true - type: choice - default: 'Release' - options: - - Release - - Debug - body: - description: 'Text for Release' - required: false - -jobs: - build-x64: - name: Build x64 Release - uses: ./.github/workflows/build.yml - with: - platform: x64 - configuration: ${{ inputs.configuration }} - - build-x86: - name: Build x86 Release - uses: ./.github/workflows/build.yml - with: - platform: x86 - configuration: ${{ inputs.configuration }} - - publish: - name: Publish Release - runs-on: ubuntu-latest - needs: [ build-x64, build-x86 ] - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Download Artifacts - uses: actions/download-artifact@v4 - with: - pattern: '*-artifact' - merge-multiple: false - - - name: Zip Artifacts - run: | - mv x86-artifact x86 - mv x64-artifact x64 - zip -r WindowTool-${{ inputs.version }}.zip x86 x64 LICENSE - - - name: Upload Binaries to Release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: WindowTool-${{ inputs.version }}.zip - tag: ${{ inputs.version }} - overwrite: true - body: ${{ inputs.body }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 03adf78..21b6ce7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -33,6 +33,7 @@ jobs: needs: release if: ${{ needs.release.outputs.release_created }} uses: ./.github/workflows/build.yml + secrets: inherit with: platform: x64 configuration: Release @@ -42,6 +43,7 @@ jobs: needs: release if: ${{ needs.release.outputs.release_created }} uses: ./.github/workflows/build.yml + secrets: inherit with: platform: x86 configuration: Release