Skip to content

Commit

Permalink
feat: Automate pypi deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
georgkrause committed Apr 24, 2024
1 parent 68a3985 commit 24175e0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continous Delivery

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/langcodes
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install .[build]
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 24175e0

Please sign in to comment.