9 Commits

Author SHA1 Message Date
Jamie Hardt
d0e2e5bbe5 Update pythonpublish.yml
Changed action to release-published
2023-05-17 17:18:36 -07:00
Jamie Hardt
e90897e503 Update pythonpublish.yml 2023-05-17 17:06:17 -07:00
Jamie Hardt
4daa008e91 Merge branch 'master' into release 2023-05-17 17:03:47 -07:00
Jamie Hardt
cf1d71800e Update pythonpublish.yml 2023-05-17 17:01:25 -07:00
Jamie Hardt
fcb25ae183 Update pythonpublish.yml
Updated action versions
2023-05-17 16:59:17 -07:00
Jamie Hardt
97ada84bfe Merge pull request #7 from iluvcapra/release
Release
2023-05-17 16:55:00 -07:00
Jamie Hardt
d157512c32 Update pythonpublish.yml
Updating checkoutv2
2023-05-17 16:54:00 -07:00
Jamie Hardt
1e2d31716e Merge remote-tracking branch 'refs/remotes/origin/master' 2023-05-17 16:50:41 -07:00
Jamie Hardt
6be7c54de5 Update pythonpublish.yml 2023-05-17 16:48:25 -07:00

View File

@@ -2,27 +2,29 @@ name: Upload Python Package
on: on:
release: release:
types: [created] types: [published]
workflow_dispatch:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3.5.2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v1 uses: actions/setup-python@v4.6.0
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install setuptools wheel twine pip install setuptools build wheel twine
- name: Build and publish - name: Build and publish
env: env:
TWINE_USERNAME: __token__ TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }}
run: | run: |
python setup.py sdist bdist_wheel python -m build .
twine upload dist/* twine upload dist/*
- name: Report to Mastodon - name: Report to Mastodon
uses: cbrgm/mastodon-github-action@v1.0.1 uses: cbrgm/mastodon-github-action@v1.0.1