Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*' # Triggers only on version tags like v1.0.0

jobs:
release:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -18,19 +18,36 @@ jobs:
with:
python-version: '3.11'

- name: Install build tools
run: python -m pip install --upgrade pip build

- name: Build Python package
run: |
python3 -m venv env
source env/bin/activate
pip install --upgrade build
python -m build

- name: Upload dist artifacts
uses: actions/upload-artifact@v4
with:
name: python-dist
path: dist/*

publish:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write

steps:
- name: Download dist artifacts
uses: actions/download-artifact@v4
with:
name: python-dist
path: dist

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PY_PI_TOKEN }}
verbose: true

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand All @@ -41,7 +58,7 @@ jobs:
- name: Build and push Docker image
run: |
IMAGE=${{ secrets.DOCKER_HUB_USERNAME }}/expedia-travel-recommendations-mcp
VERSION=${GITHUB_REF#refs/tags/}
VERSION=${GITHUB_REF#refs/tags/v}

# Build and tag with version and latest
docker build -t $IMAGE:$VERSION -t $IMAGE:latest .
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "expedia-travel-recommendations-mcp"
version = "0.1.7"
version = "0.1.8"
description = "Travel recommendations MCP Server"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down