|
1 | | -# This file was autogenerated by dist: https://github.com/astral-sh/cargo-dist |
| 1 | +# This file was autogenerated by dist: https://axodotdev.github.io/cargo-dist |
2 | 2 | # |
3 | 3 | # Copyright 2022-2024, axodotdev |
4 | | -# Copyright 2025 Astral Software Inc. |
5 | 4 | # SPDX-License-Identifier: MIT or Apache-2.0 |
6 | 5 | # |
7 | 6 | # CI that: |
|
16 | 15 |
|
17 | 16 | name: Release |
18 | 17 | permissions: |
19 | | - "attestations": "write" |
20 | 18 | "contents": "write" |
21 | | - "id-token": "write" |
22 | 19 |
|
23 | 20 | # This task will run whenever you push a git tag that looks like a version |
24 | 21 | # like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc. |
|
67 | 64 | # we specify bash to get pipefail; it guards against the `curl` command |
68 | 65 | # failing. otherwise `sh` won't catch that `curl` returned non-0 |
69 | 66 | shell: bash |
70 | | - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/cargo-dist/releases/download/v0.28.4/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" |
71 | 68 | - name: Cache dist |
72 | 69 | uses: actions/upload-artifact@v4 |
73 | 70 | with: |
@@ -115,6 +112,10 @@ jobs: |
115 | 112 | env: |
116 | 113 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
117 | 114 | BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json |
| 115 | + permissions: |
| 116 | + "attestations": "write" |
| 117 | + "contents": "read" |
| 118 | + "id-token": "write" |
118 | 119 | steps: |
119 | 120 | - name: enable windows longpaths |
120 | 121 | run: | |
@@ -234,8 +235,8 @@ jobs: |
234 | 235 | - build-local-artifacts |
235 | 236 | - build-global-artifacts |
236 | 237 | - custom-build-man |
237 | | - # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine) |
238 | | - if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-man.result == 'skipped' || needs.custom-build-man.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} |
| 238 | + # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine) |
| 239 | + if: ${{ always() && needs.plan.result == 'success' && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-man.result == 'skipped' || needs.custom-build-man.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} |
239 | 240 | env: |
240 | 241 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
241 | 242 | runs-on: "ubuntu-latest" |
@@ -309,7 +310,7 @@ jobs: |
309 | 310 | steps: |
310 | 311 | - uses: actions/checkout@v4 |
311 | 312 | with: |
312 | | - # persist-credentials: false |
| 313 | + persist-credentials: true |
313 | 314 | repository: "elkowar/homebrew-tap" |
314 | 315 | token: ${{ secrets.HOMEBREW_TAP_TOKEN }} |
315 | 316 | # So we have access to the formula |
|
0 commit comments