Skip to content

Commit

Permalink
Merge pull request #51 from sandialabs/dev
Browse files Browse the repository at this point in the history
workflow for rust releases to crates.io
  • Loading branch information
mrbuche authored Dec 12, 2022
2 parents 14c50c4 + 2d5999c commit 6a3ce86
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/crates-io.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Crates.io
on:
push:
tags:
- '*'
jobs:
cargo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: package
run: cargo package --verbose
working-directory: ./rust/
- id: publish
run: |
cargo login ${{ secrets.CRATES_IO_TOKEN }}
cargo publish --verbose
working-directory: ./rust/
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ jobs:
- id: doc
run: cargo doc --verbose
working-directory: ./rust/
- id: package
run: cargo package --verbose
working-directory: ./rust/

0 comments on commit 6a3ce86

Please sign in to comment.