Skip to content

Commit 3234c14

Browse files
committed
feat: Automate pypi deployment
1 parent 68a3985 commit 3234c14

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/cd.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Continous Delivery
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/language_data
13+
permissions:
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.12'
21+
- name: Install dependencies
22+
run: pip install .[build]
23+
- name: Build package
24+
run: python -m build
25+
- name: Publish package
26+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)