forked from Txio-labs/txio
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 743 Bytes
/
Copy pathpublish.yml
File metadata and controls
31 lines (25 loc) · 743 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
name: Publish to Crates.io
on:
push:
tags:
- 'v*'
permissions:
contents: read
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Rust
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable branch
with:
toolchain: stable
- name: Publish txio-api
run: cargo publish --package txio-api
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish txio
run: cargo publish --package txio
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}