-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (37 loc) · 974 Bytes
/
cd.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
name: Continuous Deployment
on:
workflow_call:
inputs:
python-version:
description: 'Python version'
required: true
type: string
poetry-version:
description: 'Poetry version'
required: true
type: string
os:
description: 'OS'
required: true
type: string
environment:
description: 'Environment'
required: true
type: string
jobs:
build:
runs-on: ${{ inputs.os }}
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ inputs.poetry-version }}
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}