-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (42 loc) · 1.22 KB
/
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
36
37
38
39
40
41
42
43
44
45
#
# Set version, tag & publish
#
name: Publish
run-name: "${{ inputs.version }}: ${{ github.ref_name }}@${{ github.sha }}"
on:
workflow_dispatch:
inputs:
version:
description: novel library version and repository tag to apply (e.g. 1.0.2-post5)
required: true
force-version:
description: omit check for semantic versioning
type: boolean
required: false
draft:
description: draft but do not publish release
type: boolean
required: false
prerelease:
description: mark as a prerelease
type: boolean
required: false
pypi-test:
description: publish to test.pypi.org
type: boolean
required: false
jobs:
delegate:
uses: internet-equity/fate/.github/workflows/publish.yml@1fa15f362fb18fe4636d57788755a60f6713aa61
permissions:
contents: write
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
TEST_PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
with:
version: ${{ inputs.version }}
force-version: ${{ inputs.force-version }}
force-pass: true
draft: ${{ inputs.draft }}
prerelease: ${{ inputs.prerelease }}
pypi-test: ${{ inputs.pypi-test }}