File: release.yml

package info (click to toggle)
python-pdoc 16.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,080 kB
  • sloc: python: 5,260; javascript: 1,156; makefile: 18; sh: 3
file content (31 lines) | stat: -rw-r--r-- 812 bytes parent folder | download
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
name: Release

on:
  workflow_dispatch:
    inputs:
      version:
        description: 'Version (major.minor.patch)'
        required: true
        type: string
      skip-branch-status-check:
        description: 'Skip CI status check.'
        default: false
        required: false
        type: boolean

permissions: {}

jobs:
  release:
    environment: deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v5
      with:
        token: ${{ secrets.GH_PUSH_TOKEN }}  # this token works to push to the protected main branch.
        persist-credentials: true
    - uses: mhils/releasetool@ba705fb9672350ee29b1359bbf5710c16672cd41
    - run: ./.github/release
      env:
        PROJECT_VERSION: ${{ inputs.version }}
        STATUS_CHECK_SKIP_GIT: ${{ inputs.skip-branch-status-check }}