-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpublish.yml
More file actions
35 lines (28 loc) · 915 Bytes
/
publish.yml
File metadata and controls
35 lines (28 loc) · 915 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
35
name: Publish Crates to crates.io
on:
workflow_dispatch:
# Publishes ic-btc-interface and ic-btc-validation to crates.io
# Run this after merging the release PR created by release-plz
jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write # Required for OIDC token exchange
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Authenticate with crates.io
id: auth
uses: rust-lang/crates-io-auth-action@v1
- name: Publish crates (release-plz)
uses: release-plz/action@5ab144c9d67d4346240190d0f95ed08668677928 # v0.5.121
with:
command: release
version: 0.3.151
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}