Add actions?
Some checks failed
Publish Package / Build Package (push) Failing after 41s
Publish Package / Deploy Package (push) Has been skipped

This commit is contained in:
Byron Lathi
2025-11-08 12:48:26 -08:00
parent ddd199e5e4
commit e69601c8ec

View File

@@ -0,0 +1,28 @@
name: Publish Package
on: [push]
jobs:
build:
name: Build Package
runs-on: ubuntu-latest
steps:
- run: source init_env.sh
- run: python -m build
- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
deploy:
name: Deploy Package
needs:
- build
runs-on: ubuntu-latest
steps:
- run: source init_env.sh
- uses: actions/download-artifact@v4
name: python-package-distributions
path: dist/
- run: TWINE_PASSWORD=${{ secrets.PYPI_PAT }} TWINE_USERNAME=bslathi19 python -m twine upload --repository-url ${CI_API_URL} dist/*