lune/.github/workflows/publish.yaml

25 lines
484 B
YAML
Raw Normal View History

2023-01-25 02:11:04 +00:00
name: Publish
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
2023-01-25 02:11:04 +00:00
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
2023-01-25 02:11:04 +00:00
- name: Publish to crates.io
2023-02-06 00:46:03 +00:00
uses: katyo/publish-crates@v2
2023-01-25 02:11:04 +00:00
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true