Skip to content

Commit

Permalink
Create workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjafer committed Jan 3, 2024
1 parent c7e280e commit c44e00e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Python CI

"on":
push: {}
pull_request: {}
release:
types: [published]

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/schwab-api
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # full history for setuptools_scm

- name: Build and publish
uses: lsst-sqre/build-and-publish-to-pypi@v2
with:
python-version: "3.11"

0 comments on commit c44e00e

Please sign in to comment.