Skip to content

Commit

Permalink
Merge pull request #20 from fema-ffrd/feature/release-workflow_5
Browse files Browse the repository at this point in the history
Initial release workflow
  • Loading branch information
thwllms authored Apr 19, 2024
2 parents 8497436 + 4cb3654 commit 38193c3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- "*.*.*"

permissions:
contents: read

jobs:
release:
name: release
runs-on: ubuntu-latest
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/*

0 comments on commit 38193c3

Please sign in to comment.