Skip to content

Commit 5d55fce

Browse files
committed
remove branching pattern in deploy script
1 parent a201dbe commit 5d55fce

File tree

1 file changed

+2
-42
lines changed

1 file changed

+2
-42
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ on:
1515
- public_health
1616

1717
jobs:
18-
deploy-core:
19-
if: ${{ (github.event_name == 'release' && contains(github.event.release.tag_name, 'core-v')) || github.event.inputs.package == 'core' }}
18+
deploy:
2019
runs-on: ubuntu-latest
2120
permissions:
2221
id-token: write
@@ -81,43 +80,4 @@ jobs:
8180
- name: Publish ${PACKAGE_NAME} to PyPI
8281
uses: pypa/gh-action-pypi-publish@release/v1
8382
with:
84-
packages-dir: ${{ env.PACKAGE_PATH }}/dist/
85-
86-
deploy-public-health:
87-
if: ${{ (github.event_name == 'release' && contains(github.event.release.tag_name, 'public-health-v')) || github.event.inputs.package == 'public_health' }}
88-
runs-on: ubuntu-latest
89-
permissions:
90-
id-token: write
91-
steps:
92-
- uses: actions/checkout@v4
93-
with:
94-
fetch-depth: 0 # Needed for setuptools_scm
95-
- name: Set up Python
96-
uses: actions/setup-python@v4
97-
with:
98-
python-version: "3.11"
99-
- name: Install uv
100-
run: |
101-
curl -LsSf https://astral.sh/uv/install.sh | sh
102-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
103-
- name: Fetch git tags for public health
104-
run: |
105-
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
106-
echo "Available public health tags:"
107-
git tag --list "public-health-v*" | head -10
108-
echo "Current git describe for public health tags:"
109-
git describe --tags --match "public-health-v*" || echo "No public health tags found"
110-
echo "Git log --oneline (last 5):"
111-
git log --oneline -5
112-
- name: Install dependencies
113-
run: |
114-
python --version
115-
uv pip install --system setuptools wheel build
116-
- name: Build public health
117-
run: |
118-
cd libs/public_health
119-
python -m build
120-
- name: Publish public health to PyPI
121-
uses: pypa/gh-action-pypi-publish@release/v1
122-
with:
123-
packages-dir: libs/public_health/dist/
83+
packages-dir: ${{ env.PACKAGE_PATH }}/dist/

0 commit comments

Comments
 (0)