chore(version): test upgrade #724
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: Test and Publish | |
on: | |
push: | |
branches: | |
- "master" | |
- "branch*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
name: "publish" | |
environment: cargo | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check fmt | |
run: cargo fmt --check | |
- name: Show cargo info | |
run: cargo version --verbose | |
- name: Run Test | |
run: | | |
cargo test --doc | |
- name: Run publish-action of oss | |
uses: tu6ge/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
with: | |
DIR: "/" | |
TAG_PREFIX: "v" |