Skip to content

Publish

Publish #12

Workflow file for this run

# This file is part of simple-crosshair-overlay and is licenced under the GNU GPL v3.0.
# See LICENSE file for full text.
# Copyright © 2023 Michael Ripley
name: Publish
on:
workflow_dispatch:
secrets:
CARGO_REGISTRY_TOKEN:
required: true
jobs:
publish:
runs-on: windows-latest
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Setup workflow cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}