Skip to content

move jobs to pyproject.toml using poethepoet #9

move jobs to pyproject.toml using poethepoet

move jobs to pyproject.toml using poethepoet #9

Workflow file for this run

name: publish
on:
pull_request: # TODO - remove after it works
push:
tags:
- "hawc-client-[0-9]+.[0-9]+"
jobs:
publish-hawc-client:
runs-on: ubuntu-22.04
permissions:
id-token: write
environment:
name: publish
url: https://pypi.org/project/hawc-client/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
- uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: "**/pyproject.toml"
- name: Install environment
run: |
uv pip install --system -e ".[dev,docs]"
uv pip install --system -e client
- name: Build client
run: cd client && poe build
# - name: Publish package to PyPI
# env:
# PUBLISH_PYPI: ${{ secrets.PUBLISH_PYPI }}
# if: env.PUBLISH_PYPI != null
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# verbose: true
# attestations: true
# print-hash: true
# packages-dir: client/dist/