-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fab0f6
commit ff22a66
Showing
6 changed files
with
1,418 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
name: Upload to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
deployment: | ||
environment: pypi-publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check prerelease | ||
id: check_version | ||
run: | | ||
if [[ "${{ github.ref }}" =~ ^refs/tags/[0-9.]+$ ]]; then | ||
echo "PRERELEASE=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "PRERELEASE=true" >> $GITHUB_OUTPUT | ||
fi | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
|
||
- name: Build artifacts | ||
run: | | ||
python -m pip install build | ||
python -m build | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v3 | ||
|
||
- name: Test Build | ||
run: | | ||
python -m pip install dist/*.whl | ||
lxm3 version | ||
- name: Publish package distributions to PyPI | ||
run: pdm publish --no-build |
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
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
Oops, something went wrong.