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:
Jamil
2024-12-29 11:08:08 -08:00
committed by GitHub
parent cccd1635ed
commit f82478b877
2 changed files with 4 additions and 5 deletions

View File

@@ -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 }}"

View File

@@ -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