Skip to content

Commit

Permalink
Publish release automatically when pushing version tag (#3809)
Browse files Browse the repository at this point in the history
  • Loading branch information
romac authored Jan 23, 2024
1 parent 39036d1 commit 8a8f1eb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-dry-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish (dry-run)

on:
push:
branches:
- 'release/*'

jobs:
publish_dry_run:
name: Publish (dry-run)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
dry-run: true

13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Publish (dry-run)
name: Publish

on:
push:
branches:
- 'release/*'
tags:
- v[0-9]+.*

jobs:
publish:
name: Publish (dry-run)
publish_dry_run:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,5 +17,6 @@ jobs:
override: true
- uses: katyo/publish-crates@v2
with:
dry-run: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}


0 comments on commit 8a8f1eb

Please sign in to comment.