Skip to content

Commit

Permalink
chore: auto publish to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Oct 16, 2024
1 parent 9cb85ec commit a27ac73
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,16 @@ jobs:
if: matrix.test != 'false'
# TODO: run llvm-cov only for single build since other builds are not sent to codecov anyway
run: cargo llvm-cov --workspace ${{ matrix.features }} --lcov --target ${{ matrix.target }} --output-path lcov.info
publish:
name: Publish on crates.io
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4

- name: Install Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Publish to Crates.io
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
/.idea
/build

0 comments on commit a27ac73

Please sign in to comment.