|
42 | 42 | pull_request: |
43 | 43 | push: |
44 | 44 | tags: |
45 | | - - "redisctl-v[0-9]+.[0-9]+.[0-9]+*" |
| 45 | + - '**[0-9]+.[0-9]+.[0-9]+*' |
46 | 46 |
|
47 | 47 | jobs: |
48 | 48 | # Run 'dist plan' (or host) to determine what tasks we need to do |
|
64 | 64 | # we specify bash to get pipefail; it guards against the `curl` command |
65 | 65 | # failing. otherwise `sh` won't catch that `curl` returned non-0 |
66 | 66 | shell: bash |
67 | | - 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.1/cargo-dist-installer.sh | sh" |
68 | 68 | - name: Cache dist |
69 | 69 | uses: actions/upload-artifact@v4 |
70 | 70 | with: |
@@ -217,8 +217,8 @@ jobs: |
217 | 217 | - plan |
218 | 218 | - build-local-artifacts |
219 | 219 | - build-global-artifacts |
220 | | - # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine) |
221 | | - 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') }} |
| 220 | + # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine) |
| 221 | + 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') }} |
222 | 222 | env: |
223 | 223 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
224 | 224 | runs-on: "ubuntu-22.04" |
@@ -278,32 +278,6 @@ jobs: |
278 | 278 |
|
279 | 279 | gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/* |
280 | 280 |
|
281 | | - update_brew_formula: |
282 | | - name: Update Brew Formula |
283 | | - runs-on: ubuntu-latest |
284 | | - needs: [plan, host] |
285 | | - if: ${{ needs.plan.outputs.publishing == 'true' }} |
286 | | - steps: |
287 | | - - name: Extract version from tag |
288 | | - id: extract_version |
289 | | - run: | |
290 | | - TAG="${{ github.ref_name }}" |
291 | | - # Strip 'redisctl-v' prefix to get version number (e.g., redisctl-v0.6.6 -> 0.6.6) |
292 | | - VERSION="${TAG#redisctl-v}" |
293 | | - # Add 'v' prefix for Homebrew (e.g., 0.6.6 -> v0.6.6) |
294 | | - echo "version=v${VERSION}" >> $GITHUB_OUTPUT |
295 | | - echo "Extracted version: v${VERSION}" |
296 | | -
|
297 | | - |
298 | | - with: |
299 | | - formula-name: redisctl |
300 | | - formula-path: Formula/redisctl.rb |
301 | | - base-branch: main |
302 | | - tag-name: ${{ steps.extract_version.outputs.version }} |
303 | | - homebrew-tap: joshrotenberg/homebrew-brew |
304 | | - env: |
305 | | - COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} |
306 | | - |
307 | 281 | announce: |
308 | 282 | needs: |
309 | 283 | - plan |
|
0 commit comments