Skip to content

3.1.1

3.1.1 #9

Workflow file for this run

name: Release
on:
workflow_dispatch:
release:
types:
- created
jobs:
release:
name: release
runs-on: ubuntu-latest
if: ${{ github.repository }} == 'stac-utils/stac-pydantic'
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install release dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build and publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_STACUTILS_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_STACUTILS_PASSWORD }}
run: |
python -m build
twine upload dist/*