Skip to content

Merge branch 'main' of github.com:VectorInstitute/aieng-template-impl… #2

Merge branch 'main' of github.com:VectorInstitute/aieng-template-impl…

Merge branch 'main' of github.com:VectorInstitute/aieng-template-impl… #2

Workflow file for this run

name: publish package
permissions:
contents: write
pull-requests: write
on:
push:
tags:
- "v*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libssl-dev
- uses: actions/[email protected]
- name: Install uv
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04
with:
# Install a specific version of uv.
version: "0.7.6"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
with:
python-version-file: ".python-version"
- name: Install the project
run: cd aieng-topic-impl && uv sync --dev
- name: Build package
run: cd aieng-topic-impl && source .venv/bin/activate && uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: aieng-topic-impl/dist/
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0
with:
artifacts: "aieng-topic-impl/dist/*"
generateReleaseNotes: true