|
62 | 62 | # we specify bash to get pipefail; it guards against the `curl` command
|
63 | 63 | # failing. otherwise `sh` won't catch that `curl` returned non-0
|
64 | 64 | shell: bash
|
65 |
| - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.15.0/cargo-dist-installer.sh | sh" |
| 65 | + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.16.0/cargo-dist-installer.sh | sh" |
66 | 66 | # sure would be cool if github gave us proper conditionals...
|
67 | 67 | # so here's a doubly-nested ternary-via-truthiness to try to provide the best possible
|
68 | 68 | # functionality based on whether this is a pull_request, and whether it's from a fork.
|
@@ -114,6 +114,7 @@ jobs:
|
114 | 114 | - uses: swatinem/rust-cache@v2
|
115 | 115 | with:
|
116 | 116 | key: ${{ join(matrix.targets, '-') }}
|
| 117 | + cache-provider: ${{ matrix.cache_provider }} |
117 | 118 | - name: Install cargo-dist
|
118 | 119 | run: ${{ matrix.install_dist }}
|
119 | 120 | # Get the dist-manifest
|
@@ -167,7 +168,7 @@ jobs:
|
167 | 168 | submodules: recursive
|
168 | 169 | - name: Install cargo-dist
|
169 | 170 | shell: bash
|
170 |
| - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.15.0/cargo-dist-installer.sh | sh" |
| 171 | + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.16.0/cargo-dist-installer.sh | sh" |
171 | 172 | # Get all the local artifacts for the global tasks to use (for e.g. checksums)
|
172 | 173 | - name: Fetch local artifacts
|
173 | 174 | uses: actions/download-artifact@v4
|
@@ -212,7 +213,7 @@ jobs:
|
212 | 213 | with:
|
213 | 214 | submodules: recursive
|
214 | 215 | - name: Install cargo-dist
|
215 |
| - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.15.0/cargo-dist-installer.sh | sh" |
| 216 | + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.16.0/cargo-dist-installer.sh | sh" |
216 | 217 | # Fetch artifacts from scratch-storage
|
217 | 218 | - name: Fetch artifacts
|
218 | 219 | uses: actions/download-artifact@v4
|
@@ -262,10 +263,13 @@ jobs:
|
262 | 263 | # Remove the granular manifests
|
263 | 264 | rm -f artifacts/*-dist-manifest.json
|
264 | 265 | - name: Create GitHub Release
|
265 |
| - uses: ncipollo/release-action@v1 |
266 |
| - with: |
267 |
| - tag: ${{ needs.plan.outputs.tag }} |
268 |
| - name: ${{ fromJson(needs.host.outputs.val).announcement_title }} |
269 |
| - body: ${{ fromJson(needs.host.outputs.val).announcement_github_body }} |
270 |
| - prerelease: ${{ fromJson(needs.host.outputs.val).announcement_is_prerelease }} |
271 |
| - artifacts: "artifacts/*" |
| 266 | + env: |
| 267 | + PRERELEASE_FLAG: "${{ fromJson(needs.host.outputs.val).announcement_is_prerelease && '--prerelease' || '' }}" |
| 268 | + ANNOUNCEMENT_TITLE: "${{ fromJson(needs.host.outputs.val).announcement_title }}" |
| 269 | + ANNOUNCEMENT_BODY: "${{ fromJson(needs.host.outputs.val).announcement_github_body }}" |
| 270 | + run: | |
| 271 | + # Write and read notes from a file to avoid quoting breaking things |
| 272 | + echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt |
| 273 | +
|
| 274 | + gh release create "${{ needs.plan.outputs.tag }}" --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" $PRERELEASE_FLAG |
| 275 | + gh release upload "${{ needs.plan.outputs.tag }}" artifacts/* |
0 commit comments