Skip to content

Commit

Permalink
ci: add release workflow!
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Dec 5, 2024
1 parent 8676b34 commit 9f73f95
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v0.26.0, v1.0.0
- "v[0-9]+.[0-9]+.[0-9]+-pre.[0-9]+" # e.g. v0.26.0-pre.1

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Publish crate
run: cargo publish --token ${{ secrets.CRATES_TOKEN }}

0 comments on commit 9f73f95

Please sign in to comment.