forked from rust-lang/git2-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 834 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Publish
on:
workflow_dispatch:
inputs:
git2:
description: "Publish git2"
type: boolean
default: true
git2_curl:
description: "Publish git2-curl"
type: boolean
default: true
libgit2_sys:
description: "Publish libgit2-sys"
type: boolean
default: true
permissions:
contents: write
jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PUBLISH_GIT2: ${{ inputs.git2 }}
PUBLISH_GIT2_CURL: ${{ inputs.git2_curl }}
PUBLISH_LIBGIT2_SYS: ${{ inputs.libgit2_sys }}
run: ./ci/publish.sh