clean up - ready to merge to main once we change the workflow trigger #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Test PyPI | |
#TODO before merging to main change this to | |
# on: | |
# release: | |
# types: | |
# - published | |
on: | |
push: | |
branches: | |
- brian/pypi-build | |
jobs: | |
publish-testpypi: | |
runs-on: ubuntu-latest | |
environment: | |
name: testpypi | |
url: https://pypi.org/p/e84-geoai-common/ | |
permissions: | |
id-token: write | |
if: ${{ github.repository }} == 'Element84/e84-geoai-common' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build twine | |
- name: Build package | |
run: python -m build | |
- name: Publish to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
verbose: true |