forked from PyO3/pyo3
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 816 Bytes
/
Copy pathrelease.yml
File metadata and controls
34 lines (28 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release Rust Crate
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
version:
description: The version to build
jobs:
release:
permissions:
id-token: write
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.0.1
with:
# The tag to build or the tag received by the tag event
ref: ${{ github.event.inputs.version || github.ref }}
persist-credentials: false
- uses: astral-sh/setup-uv@v7
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Publish to crates.io
run: uvx nox -s publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}