Skip to content

Commit

Permalink
publish from GitHub release page (#2645)
Browse files Browse the repository at this point in the history
* space to breath

* publish from GitHub Releases

* Apply suggestions from code review
  • Loading branch information
tshepang authored Nov 1, 2023
1 parent 5d1a254 commit 04fa393
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# To trigger this:
# - go to Actions > Publish
# - click the Run Workflow dropdown in the top-right
name: Publish
on: workflow_dispatch
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
jobs:
cargo-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Publish bindgen (lib)
run: cargo publish --package bindgen --token ${CRATES_TOKEN}
- name: Publish bindgen-cli
run: cargo publish --package bindgen-cli --token ${CRATES_TOKEN}
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,9 @@ important fix) you can skip this.
Once you're in the right branch, do:

```
cargo release [patch|minor] --execute
cargo release [patch|minor] --no-publish --execute
```

This does the following:

- Tag (`git tag`) the HEAD commit
Expand Down

0 comments on commit 04fa393

Please sign in to comment.