Skip to content

cargo publish

cargo publish #1

name: cargo publish
on:
workflow_dispatch:
inputs:
crate:
description: "Crate"
required: true
type: choice
options:
- litho-diagnostics
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: Publish
run: cargo publish
working-directory: ${{ inputs.crate }}/