Skip to content

chore(action): upgrade publish-action #725

chore(action): upgrade publish-action

chore(action): upgrade publish-action #725

Workflow file for this run

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"