-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial GitHub workflow to publish to PyPI (#32)
* Add GitHub workflows * Disable Travis * Rename workflow
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.