Skip to content

Commit

Permalink
add publish to pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joapuiib committed Nov 22, 2024
1 parent b6b15cd commit 4963c6f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
tags:
- "*"
jobs:
build-n-publish:
runs-on: ubuntu-latest
name: Build and publish Python 🐍 distributions 📦 to PyPI
environment:
name: pypi
url: https://pypi.org/p/pygments-shell-console
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Set up Python 3.8
uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 4963c6f

Please sign in to comment.