Skip to content

Commit ea855f4

Browse files
author
Egor Tarasenko
committed
FEAT: Publish dbt-graph-loader
1 parent ff8a20e commit ea855f4

File tree

2 files changed

+203
-0
lines changed

2 files changed

+203
-0
lines changed

.github/workflows/publish.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
filter:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
dbt_graph_loader: ${{ steps.filter.outputs.dbt_graph_loader == 'true' }}
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0 # Ensures that the full history is fetched
17+
18+
- name: Paths filter
19+
id: filter
20+
uses: dorny/paths-filter@v3
21+
with:
22+
filters: |
23+
dbt_graph_loader:
24+
- 'dbt_graph_loader/**/*'
25+
- 'pyproject.toml'
26+
- 'poetry.lock'
27+
28+
publish_dbt_graph_loader:
29+
runs-on: ubuntu-latest
30+
needs: filter
31+
if: needs.filter.outputs.dbt_graph_loader == 'true'
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v3
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.10'
40+
41+
- name: Install Poetry
42+
run: curl -sSL https://install.python-poetry.org | python3 -
43+
44+
- name: Install dependencies
45+
run: poetry install
46+
47+
- name: Build package
48+
run: poetry build
49+
50+
- name: Publish to PyPI
51+
env:
52+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
53+
run: poetry publish -u __token__ -p $PYPI_TOKEN
54+
55+

poetry.lock

Lines changed: 148 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)