aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/python-publish.yml
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cmc.pub>2025-03-29 00:23:35 -0500
committerChristian Cleberg <hello@cmc.pub>2025-03-29 00:23:35 -0500
commitea85cd451eb052e80b38a04e25918290094325b4 (patch)
tree443fccfc7fe2a23443ac993e84436a757b3efc77 /.github/workflows/python-publish.yml
downloadnba-scores-ea85cd451eb052e80b38a04e25918290094325b4.tar.gz
nba-scores-ea85cd451eb052e80b38a04e25918290094325b4.tar.bz2
nba-scores-ea85cd451eb052e80b38a04e25918290094325b4.zip
initial commit
Diffstat (limited to '.github/workflows/python-publish.yml')
-rw-r--r--.github/workflows/python-publish.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
new file mode 100644
index 0000000..0073c6f
--- /dev/null
+++ b/.github/workflows/python-publish.yml
@@ -0,0 +1,34 @@
+# This workflow will upload a Python Package using Twine when a release is created
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
+
+name: Upload Python Package
+
+on:
+ release:
+ types: [published]
+
+permissions:
+ contents: read
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ environment:
+ name: pypi
+ url: https://pypi.org/p/nba-cli
+ permissions:
+ id-token: write
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.x'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install build
+ - name: Build package
+ run: python -m build
+ - name: Publish package
+ uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file