File tree Expand file tree Collapse file tree 2 files changed +203
-0
lines changed
Expand file tree Collapse file tree 2 files changed +203
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments