Skip to content

Commit

Permalink
Add Crates publish workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexiaChen authored Jan 10, 2021
1 parent 086ffb7 commit 9561a66
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release
on:
push:
branches:
- release
paths:
- '**/Cargo.toml'
- '.github/workflows/release.yml'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Checkout
uses: actions/checkout@v2
- name: cargo login
run: cargo login ${{ secrets.CRATES_IO }}
- name: cargo package
run: |
echo "Cargo Packaging"
cargo package
echo "Cargo Packaged"
- name: Publish
run: |
echo "Cargo Publishing"
cargo publish --no-verify
echo "Cargo Published"

0 comments on commit 9561a66

Please sign in to comment.