Skip to content

Commit

Permalink
Publish to crates.io with Github Actions (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukinarit authored Feb 2, 2023
1 parent 56521c4 commit c1ad862
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to crates.io

on:
release:
types: [released]

jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_IO_API_TOKEN }}
- name: Publish
uses: actions-rs/cargo@v1
with:
command: publish

0 comments on commit c1ad862

Please sign in to comment.