Skip to content

Commit 4963c6f

Browse files
committed
add publish to pypi workflow
1 parent b6b15cd commit 4963c6f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
build-n-publish:
8+
runs-on: ubuntu-latest
9+
name: Build and publish Python 🐍 distributions 📦 to PyPI
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/pygments-shell-console
13+
permissions:
14+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
15+
steps:
16+
- name: Set up Python 3.8
17+
uses: actions/checkout@master
18+
- name: Set up Python 3.8
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: 3.8
22+
- name: Install pypa/build
23+
run: >-
24+
python -m
25+
pip install
26+
build
27+
--user
28+
- name: Build a binary wheel and a source tarball
29+
run: >-
30+
python -m
31+
build
32+
--sdist
33+
--wheel
34+
--outdir dist/
35+
- name: Publish package distributions to PyPI
36+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)