Skip to content

Commit

Permalink
Merge pull request #12 from hiro-o918/feature/release-ci
Browse files Browse the repository at this point in the history
publish to crate.io
  • Loading branch information
hiro-o918 authored Mar 3, 2022
2 parents d963e84 + e058b41 commit 7cdc26a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}

publish-cargo:
name: Publishing to Cargo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty

0 comments on commit 7cdc26a

Please sign in to comment.