mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 02:18:47 +00:00
ci: Add fixes for upload script (#7588)
- Attaching the standalone client needs to happen on `main` runs, like the other clients - GitHub can't seem to find the release. I suspect the `GITHUB_REPOSITORY` var is unneeded.
This commit is contained in:
6
.github/workflows/_swift.yml
vendored
6
.github/workflows/_swift.yml
vendored
@@ -8,8 +8,8 @@ jobs:
|
||||
name: ${{ matrix.job_name }}
|
||||
runs-on: macos-15
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: "write"
|
||||
contents: write # for attaching the build artifacts to the release
|
||||
id-token: write
|
||||
env:
|
||||
XCODE_VERSION: "16.2"
|
||||
strategy:
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
API_KEY_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY_ID }}"
|
||||
API_KEY: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY }}"
|
||||
- run: ${{ matrix.upload-script }}
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || (github.ref == 'refs/heads/main' && contains(github.event.head_commit.modified, 'elixir/VERSION')) }}
|
||||
if: "${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'main' }}"
|
||||
env:
|
||||
ARTIFACT_PATH: "${{ runner.temp }}/${{ matrix.artifact-file }}"
|
||||
ISSUER_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_ISSUER_ID }}"
|
||||
|
||||
@@ -17,5 +17,4 @@ sha256sum "$ARTIFACT_PATH" >"$ARTIFACT_PATH.sha256sum.txt"
|
||||
gh release upload "$RELEASE_NAME" \
|
||||
"$ARTIFACT_PATH" \
|
||||
"$ARTIFACT_PATH.sha256sum.txt" \
|
||||
$clobber \
|
||||
--repo "$GITHUB_REPOSITORY"
|
||||
$clobber
|
||||
|
||||
Reference in New Issue
Block a user