Debian Codegraph @

.github/workflows/publish.yml

raw
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 publish-ref:
18 description: "Branch/tag/SHA to publish from"
19 type: string
20 default: main
21
22 permissions:
23 contents: write
24
25 jobs:
26 publish:
27 name: Publish to crates.io
28 runs-on: ubuntu-latest
29 steps:
30 - uses: actions/checkout@master
31 with:
32 submodules: true
33 ref: ${{ inputs.publish-ref }}
34 - name: Publish
35 env:
36 CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
37 PUBLISH_GIT2: ${{ inputs.git2 }}
38 PUBLISH_GIT2_CURL: ${{ inputs.git2_curl }}
39 PUBLISH_LIBGIT2_SYS: ${{ inputs.libgit2_sys }}
40 run: ./ci/publish.sh