Skip to content

Merge pull request #27 from fema-ffrd/release/0.1.0 #5

Merge pull request #27 from fema-ffrd/release/0.1.0

Merge pull request #27 from fema-ffrd/release/0.1.0 #5

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: read
jobs:
release:
name: release
runs-on: ubuntu-latest
environment: release-env
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install release dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build wheel and source distribution
run: |
python -m build
- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*