File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CD Workflow
2+
3+ on :
4+ push :
5+ tags :
6+ - " services/[a-zA-Z]+/v[0-9]+.[0-9]+.[0-9]+"
7+ - " services/[a-zA-Z]+/v[0-9]+.[0-9]+.[0-9]+-*"
8+ workflow_dispatch :
9+
10+ jobs :
11+ main :
12+ name : Build & Publish module
13+ runs-on : " ubuntu-latest"
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ - name : Install Python
18+ uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.8"
21+ - name : Extract updated module path
22+ env :
23+ TAG : ${{ github.event.ref }}
24+ run : |
25+ TAG_NO_PREFIX=$(echo "$TAG" | sed 's/^refs\/tags\///')
26+ SERVICE_PATH=$(echo "$TAG_NO_PREFIX" | rev | cut -d'/' -f2- | rev)
27+ echo "SERVICE_PATH=$SERVICE_PATH" >> $GITHUB_ENV
28+ - name : Build & Publish to PyPi
29+ 30+ with :
31+ pypi_token : ${{ secrets.PYPI_TOKEN }}
32+ poetry_publish_options : " --build"
33+ package_directory : $SERVICE_PATH
You can’t perform that action at this time.
0 commit comments