Skip to content

Commit b8b7dc4

Browse files
authored
github: Create publishing workflow on tag push, disable cargo-release publish (#110)
We'll be testing out the workflow with `cargo-release` doing the gruntwork and pushing a tag, but not publishing it to crates.io yet; this'll be done by the CI.
1 parent f23d116 commit b8b7dc4

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
paths: "/Cargo.toml"
7+
8+
jobs:
9+
Publish:
10+
if: github.repository_owner == 'Traverse-Research'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
toolchain: stable
17+
override: true
18+
- name: Publish
19+
uses: actions-rs/cargo@v1
20+
with:
21+
command: publish
22+
args: --token ${{ secrets.cratesio_token }}

release.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ tag-message = "Release {{version}}"
44
tag-name = "{{version}}"
55
sign-commit = true
66
sign-tag = true
7+
publish = false
78

89
pre-release-replacements = [
910
{file="README.md", search="gpu-allocator = .*", replace="{{crate_name}} = \"{{version}}\""},

0 commit comments

Comments
 (0)