Merge pull request #3475 from gitbutlerapp/copy-matrix-because-actions-is-frustratingly-bad

copy over the matrix from the first step into each of the steps
This commit is contained in:
Josh Junon 2024-04-09 13:40:12 -07:00 committed by GitHub
commit 11ed28a5f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,12 +141,15 @@ jobs:
sign-tauri:
needs: build-tauri
runs-on: [self-hosted, evcodesignd]
if: ${{ needs.build-tauri.outputs.channel == 'release' }} && ${{ needs.build-tauri.outputs.platform == 'windows-latest' }}
strategy:
matrix:
platform:
- windows-latest # [windows, x64]
steps:
- name: Download unsigned artifacts
uses: actions/download-artifact@v4
with:
name: "${{ needs.build-tauri.outputs.channel }}-${{ needs.build-tauri.outputs.platform }}"
name: "${{ needs.build-tauri.outputs.channel }}-${{ matrix.platform }}"
path: release
- name: Sign Windows binary
shell: bash
@ -157,18 +160,26 @@ jobs:
- name: Upload signed artifacts
uses: actions/upload-artifact@v4
with:
name: "${{ needs.build-tauri.outputs.channel }}-${{ needs.build-tauri.outputs.platform }}"
name: "${{ needs.build-tauri.outputs.channel }}-${{ matrix.platform }}"
path: release/
if-no-files-found: error
overwrite: true
# publish-tauri:
# strategy:
# fail-fast: false
# matrix:
# platform:
# - macos-latest # [macOs, x64]
# - macos-latest-xlarge # [macOs, ARM64]
# - ubuntu-20.04 # [linux, x64]
# - windows-latest # [windows, x64]
# needs: [sign-tauri, build-tauri]
# steps:
# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: "${{ needs.build-tauri.outputs.channel }}-${{ needs.build-tauri.outputs.platform }}"
# name: "${{ needs.build-tauri.outputs.channel }}-${{ matrix.platform }}"
# path: release
# - uses: shallwefootball/s3-upload-action@master
# name: Upload To S3