v2.1.1 #4
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: Rust | |
on: | |
release: | |
types: [published] # Only publish to crates.io when we formally publish a release | |
# For more on how to formally release shellflip, check out https://help.github.com/en/articles/creating-releases | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to crates.io | |
run: cargo login $CRATES_IO_TOKEN | |
env: | |
CRATES_IO_TOKEN: ${{ secrets.crates_io_token }} # https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables | |
- name: Dry run publish | |
run: cargo publish --dry-run | |
- name: Publish | |
run: cargo publish |