Skip to content

Commit

Permalink
publish from GitHub Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Oct 11, 2023
1 parent d0c7642 commit 3362bd0
Show file tree
Hide file tree
Showing 2 changed files with 22 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 bindden (lib)
run: cargo publish --package bindgen --token ${CRATES_TOKEN}
- name: Publish bindden-cli
run: cargo publish --package bindgen-cli --token ${CRATES_TOKEN}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ 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:
Expand Down

0 comments on commit 3362bd0

Please sign in to comment.