File: publish.yml

package info (click to toggle)
rust-git2 0.20.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,388 kB
  • sloc: sh: 35; makefile: 6
file content (35 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (6)
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