-
Notifications
You must be signed in to change notification settings - Fork 40
43 lines (36 loc) · 1003 Bytes
/
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
name: Publish to PyPi
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish-to-pypi:
runs-on: ubuntu-latest
environment:
name: PyPi
url: https://pypi.org/p/airbyte
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # Needed to upload artifacts to the release
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.7.1"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
- name: Install poetry-dynamic-versioning
run: pip install poetry-dynamic-versioning
- name: Install dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1