Skip to content

Commit 132dc5a

Browse files
authored
Merge pull request #23 from ExpediaGroup/etr-1
modifying the PROD publish workflow and bumping up the version
2 parents 5f98955 + 0869319 commit 132dc5a

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*' # Triggers only on version tags like v1.0.0
77

88
jobs:
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
@@ -41,7 +58,7 @@ jobs:
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 .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "expedia-travel-recommendations-mcp"
3-
version = "0.1.7"
3+
version = "0.1.8"
44
description = "Travel recommendations MCP Server"
55
readme = "README.md"
66
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)