Skip to content

Commit

Permalink
ci: cargo publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Yag000 committed Aug 31, 2024
1 parent 17624a3 commit b33353e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release to crates.io
on:
release:
types: [created]

env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install the Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Rust Cache Action
uses: Swatinem/rust-cache@v2

- name: Publish
run: cargo publish --token $CRATES_IO_TOKEN
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit b33353e

Please sign in to comment.