Skip to content

Commit 04fa393

Browse files
authoredNov 1, 2023
publish from GitHub release page (#2645)
* space to breath * publish from GitHub Releases * Apply suggestions from code review
1 parent 5d1a254 commit 04fa393

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
 

‎.github/workflows/publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# To trigger this:
2+
# - go to Actions > Publish
3+
# - click the Run Workflow dropdown in the top-right
4+
name: Publish
5+
on: workflow_dispatch
6+
env:
7+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
8+
jobs:
9+
cargo-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v3
14+
- name: Install stable toolchain
15+
uses: dtolnay/rust-toolchain@master
16+
with:
17+
toolchain: stable
18+
- name: Publish bindgen (lib)
19+
run: cargo publish --package bindgen --token ${CRATES_TOKEN}
20+
- name: Publish bindgen-cli
21+
run: cargo publish --package bindgen-cli --token ${CRATES_TOKEN}

‎CONTRIBUTING.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,9 @@ important fix) you can skip this.
564564
Once you're in the right branch, do:
565565

566566
```
567-
cargo release [patch|minor] --execute
567+
cargo release [patch|minor] --no-publish --execute
568568
```
569+
569570
This does the following:
570571

571572
- Tag (`git tag`) the HEAD commit

0 commit comments

Comments
 (0)