Skip to content

Commit

Permalink
Update CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandcracker committed May 19, 2024
1 parent 918cbb4 commit 1a9116e
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
name: Upload Python Package
name: Publish

on:
release:
types:
- published

permissions:
contents: read
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Set up Python 🧰
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
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@81e9d935c883d0b210363ab89cf05f3894778450
uses: Commandcracker/pypi-publish@32e78ea691b666534c641470e9d74e4deca05bcc
with:
user: __token__
password: '${{ secrets.PYPI_API_TOKEN }}'
password: ${{ secrets.PYPI_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1a9116e

Please sign in to comment.