mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
Create rust-release.yml (#84)
This commit is contained in:
25
.github/workflows/rust-release.yml
vendored
Normal file
25
.github/workflows/rust-release.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Rust Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
rust_publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Cache Cargo Registry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cargo/registry
|
||||
key: ubuntu-latest-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- name: Publish package rust
|
||||
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
Reference in New Issue
Block a user