Skip to content

refactor(workspace): replace static-assertions with const fn expressions #107

refactor(workspace): replace static-assertions with const fn expressions

refactor(workspace): replace static-assertions with const fn expressions #107

Workflow file for this run

name: Crates IO
on:
workflow_dispatch:
inputs:
publish:
description: "If publish packages"
type: boolean
default: false
version:
description: "Workspace version to publish"
type: string
pull_request:
branches: [master]
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
TERM: xterm-256color
jobs:
check:
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- name: "ACTIONS: Checkout"
uses: actions/checkout@v4
- name: "Install: Rust toolchain"
uses: dsherret/rust-toolchain-file@v1
- name: "Check packages"
run: cargo run --release -p crates-io check
- name: "Publish packages"
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }}
run: cargo run --release -p crates-io publish -v ${{ inputs.version }}