Skip to content

Commit 3f1b0bc

Browse files
committed
Create publish.yml
1 parent a0f0187 commit 3f1b0bc

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Copychat to PyPI
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
7+
jobs:
8+
publish-pypi-release:
9+
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
contents: write
13+
id-token: write
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
cache: pip
22+
cache-dependency-path: "**/pyproject.toml"
23+
- name: Install dependencies
24+
run: |
25+
pip install setuptools wheel build
26+
- name: Build
27+
run: |
28+
python -m build
29+
- name: Publish
30+
uses: pypa/gh-action-pypi-publish@release/v1
31+
with:
32+
verbose: true

0 commit comments

Comments
 (0)