Skip to content

Commit

Permalink
Publish-dry run on push for patch releases
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Oct 25, 2022
1 parent 617fe58 commit 0246dd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rust

on:
push:
branches: [main]
branches: [main, release/**]
pull_request:

env:
Expand All @@ -12,7 +12,7 @@ jobs:

complete:
if: always()
needs: [fmt, rust-analyzer-compat, build-and-test, docs, publish-dry-run]
needs: [fmt, rust-analyzer-compat, build-and-test, docs]
runs-on: ubuntu-latest
steps:
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- run: make doc

publish-dry-run:
if: startsWith(github.head_ref, 'release/')
if: github.event_name == 'push' || startsWith(github.head_ref, 'release/')
strategy:
matrix:
sys:
Expand Down

0 comments on commit 0246dd2

Please sign in to comment.