Skip to content

Commit

Permalink
Add initial GitHub workflow to publish to PyPI (#32)
Browse files Browse the repository at this point in the history
* Add GitHub workflows

* Disable Travis

* Rename workflow
  • Loading branch information
dinvlad authored Apr 18, 2024
1 parent a5ee8d5 commit 6177819
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Publish to PyPI

on:
push:
branches: [main]
paths:
- "server/**"
pull_request:
branches: [main]
paths:
- "server/**"


jobs:
publish-pypi:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/wdl-lsp
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Build wheels
uses: pypa/cibuildwheel@v2.17

- name: Publish package distributions to PyPI
if: github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
File renamed without changes.

0 comments on commit 6177819

Please sign in to comment.