-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 983 Bytes
/
release.yml
File metadata and controls
34 lines (32 loc) · 983 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
# adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml
name: crates.io release
on:
push:
tags:
- '*'
jobs:
create-release:
if: github.repository_owner == 'sunshowers-code'
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # Required for OIDC token exchange.
contents: write # Required for creating releases.
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
title: debug-ignore $version
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}