-
-
Notifications
You must be signed in to change notification settings - Fork 41
38 lines (32 loc) · 962 Bytes
/
pypi_deploy.yaml
File metadata and controls
38 lines (32 loc) · 962 Bytes
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: PyPI deploy
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2.14.0
with:
egress-policy: audit
allowed-endpoints: >
files.pythonhosted.org:443
github.com:443
release-assets.githubusercontent.com:443
api.github.com:443
pypi.org:443
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v7
with:
python-version: 3.13
- name: Install airflow-dbt-python with uv
run: uv sync --no-dev
- name: Build airflow-dbt-python with uv
run: uv build
- name: Publish airflow-dbt-python to PyPI with uv
run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}