Fix object conversions (#47) #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
tags: [ "*" ] | |
jobs: | |
deploy: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.58.1 | |
override: true | |
- name: Generate docs | |
run: | | |
cargo doc | |
REPO_NAME=$(echo ${{ github.repository }} | cut -d '/' -f 2) | |
echo "<meta http-equiv=refresh content=0;url=${REPO_NAME}/index.html>" > target/doc/index.html | |
- name: Publish into Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: target/doc | |
- name: Publish to crates.io | |
run: cargo login ${{ secrets.CARGO_TOKEN }} && cargo publish |