|
15 | 15 |
|
16 | 16 | name: Release |
17 | 17 | permissions: |
18 | | - "attestations": "write" |
19 | 18 | "contents": "write" |
20 | | - "id-token": "write" |
21 | 19 |
|
22 | 20 | # This task will run whenever you push a git tag that looks like a version |
23 | 21 | # like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc. |
|
66 | 64 | # we specify bash to get pipefail; it guards against the `curl` command |
67 | 65 | # failing. otherwise `sh` won't catch that `curl` returned non-0 |
68 | 66 | shell: bash |
69 | | - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.29.0/cargo-dist-installer.sh | sh" |
| 67 | + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.2/cargo-dist-installer.sh | sh" |
70 | 68 | - name: Cache dist |
71 | 69 | uses: actions/upload-artifact@v4 |
72 | 70 | with: |
@@ -114,6 +112,10 @@ jobs: |
114 | 112 | env: |
115 | 113 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
116 | 114 | BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json |
| 115 | + permissions: |
| 116 | + "attestations": "write" |
| 117 | + "contents": "read" |
| 118 | + "id-token": "write" |
117 | 119 | steps: |
118 | 120 | - name: enable windows longpaths |
119 | 121 | run: | |
@@ -223,8 +225,8 @@ jobs: |
223 | 225 | - plan |
224 | 226 | - build-local-artifacts |
225 | 227 | - build-global-artifacts |
226 | | - # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine) |
227 | | - if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} |
| 228 | + # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine) |
| 229 | + if: ${{ always() && needs.plan.result == 'success' && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} |
228 | 230 | env: |
229 | 231 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
230 | 232 | runs-on: "ubuntu-latest" |
|
0 commit comments