Files
alkane-toolkit/vendor/ecb/.github/workflows/publiish.yml
T

37 lines
949 B
YAML

name: Publish
on:
create:
tags:
- "v*"
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_RELEASE_LTO: "fat"
jobs:
build:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- run: cargo check --color always --all --all-targets
- run: cargo fmt --check --all
- run: cargo clippy --color always --all --all-targets
- run: cargo test --color always --all --all-targets
- name: publish crates
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}