diff --git a/.github/workflows/_swift.yml b/.github/workflows/_swift.yml index 4e952179d..d5b91f1ac 100644 --- a/.github/workflows/_swift.yml +++ b/.github/workflows/_swift.yml @@ -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 }}" diff --git a/scripts/upload/github-release.sh b/scripts/upload/github-release.sh index 1eef00f0a..5a8e4081f 100755 --- a/scripts/upload/github-release.sh +++ b/scripts/upload/github-release.sh @@ -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