File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed
Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 66 - ' v*' # Triggers only on version tags like v1.0.0
77
88jobs :
9- release :
9+ build :
1010 runs-on : ubuntu-latest
1111
1212 steps :
@@ -18,19 +18,36 @@ jobs:
1818 with :
1919 python-version : ' 3.11'
2020
21- - name : Install build tools
22- run : python -m pip install --upgrade pip build
23-
2421 - name : Build Python package
2522 run : |
2623 python3 -m venv env
2724 source env/bin/activate
25+ pip install --upgrade build
2826 python -m build
2927
28+ - name : Upload dist artifacts
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : python-dist
32+ path : dist/*
33+
34+ publish :
35+ runs-on : ubuntu-latest
36+ needs : build
37+ permissions :
38+ id-token : write
39+
40+ steps :
41+ - name : Download dist artifacts
42+ uses : actions/download-artifact@v4
43+ with :
44+ name : python-dist
45+ path : dist
46+
3047 - name : Publish to PyPI
3148 uses : pypa/gh-action-pypi-publish@release/v1
3249 with :
33- password : ${{ secrets.PY_PI_TOKEN }}
50+ verbose : true
3451
3552 - name : Log in to Docker Hub
3653 uses : docker/login-action@v3
4158 - name : Build and push Docker image
4259 run : |
4360 IMAGE=${{ secrets.DOCKER_HUB_USERNAME }}/expedia-travel-recommendations-mcp
44- VERSION=${GITHUB_REF#refs/tags/}
61+ VERSION=${GITHUB_REF#refs/tags/v }
4562
4663 # Build and tag with version and latest
4764 docker build -t $IMAGE:$VERSION -t $IMAGE:latest .
Original file line number Diff line number Diff line change 11[project ]
22name = " expedia-travel-recommendations-mcp"
3- version = " 0.1.7 "
3+ version = " 0.1.8 "
44description = " Travel recommendations MCP Server"
55readme = " README.md"
66license = { file = " LICENSE" }
You can’t perform that action at this time.
0 commit comments