Skip to content

Commit

Permalink
Update CI settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu committed Sep 12, 2023
1 parent 0bef238 commit 19622a9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,25 @@ jobs:
- name: Run cargo test
continue-on-error: ${{ matrix.rust == 'nightly' }}
run: cargo test

- name: Run cargo doc
run: cargo doc --release --all-features
env:
RUSTDOCFLAGS: "-Dwarnings"

publish:
name: Publish
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ build ]
steps:
- uses: actions/checkout@v3
- name: Install latest stable
run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: Run cargo publish
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 19622a9

Please sign in to comment.