| 1 |
name: Publish |
| 2 |
on: |
| 3 |
workflow_dispatch: |
| 4 |
inputs: |
| 5 |
git2: |
| 6 |
description: "Publish git2" |
| 7 |
type: boolean |
| 8 |
default: true |
| 9 |
git2_curl: |
| 10 |
description: "Publish git2-curl" |
| 11 |
type: boolean |
| 12 |
default: true |
| 13 |
libgit2_sys: |
| 14 |
description: "Publish libgit2-sys" |
| 15 |
type: boolean |
| 16 |
default: true |
| 17 |
|
| 18 |
permissions: |
| 19 |
contents: write |
| 20 |
|
| 21 |
jobs: |
| 22 |
publish: |
| 23 |
name: Publish to crates.io |
| 24 |
runs-on: ubuntu-latest |
| 25 |
steps: |
| 26 |
- uses: actions/checkout@master |
| 27 |
with: |
| 28 |
submodules: true |
| 29 |
- name: Publish |
| 30 |
env: |
| 31 |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
| 32 |
PUBLISH_GIT2: ${{ inputs.git2 }} |
| 33 |
PUBLISH_GIT2_CURL: ${{ inputs.git2_curl }} |
| 34 |
PUBLISH_LIBGIT2_SYS: ${{ inputs.libgit2_sys }} |
| 35 |
run: ./ci/publish.sh |