-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (42 loc) · 1.33 KB
/
pypi_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
46
47
48
49
50
51
name: Publish new PyPi build version
on:
workflow_dispatch:
inputs:
bumpType:
description: Bump type
required: true
default: patch
type: choice
options:
- major
- minor
- patch
jobs:
publish:
name: PyPi Publishing
runs-on: ubuntu-latest
env:
POETRY_HTTP_BASIC_USERNAME: ${{ secrets.POETRY_HTTP_BASIC_USERNAME }}
POETRY_HTTP_BASIC_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_PASSWORD }}
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
run: pipx install poetry
- name: Install Dependencies using Poetry
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Configure poetry PyPi connection
run: poetry config http-basic.pypi $POETRY_HTTP_BASIC_USERNAME $POETRY_HTTP_BASIC_PASSWORD
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Release new PyPi build version
env:
BUMP_TYPE: ${{ inputs.bumpType }}
run: "/home/runner/work/dbt-coves/dbt-coves/publish.sh $BUMP_TYPE"