lune/.github/workflows/publish.yaml

29 lines
572 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@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- 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