forked from transact-rs/sqlx
-
Notifications
You must be signed in to change notification settings - Fork 15
32 lines (30 loc) · 840 Bytes
/
Copy pathpublish.yml
File metadata and controls
32 lines (30 loc) · 840 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
name: Publish workspace crates
on:
workflow_dispatch: {}
push:
paths:
- "**/Cargo.toml"
- ".github/workflows/publish.yml"
tags:
- "v*"
pull_request:
paths:
- "**/Cargo.toml"
- ".github/workflows/publish.yml"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
with:
toolchain: stable
- uses: Swatinem/rust-cache@65012b490220f477f20ab979e35ae732e6de4e68
- name: Publish workspace
run: |
cargo publish \
${{ startsWith(github.ref, 'refs/tags/v') && '--verbose' || '--dry-run' }} \
--workspace \
--token ${{ secrets.CRATES_TOKEN }} \
--no-default-features \
--features rustls