-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ThibaultFy <[email protected]>
- Loading branch information
1 parent
bc67c43
commit 1ca236f
Showing
1 changed file
with
12 additions
and
12 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
name: Publish | ||
|
||
on: | ||
pull_request: | ||
|
||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install tools | ||
run: pip install wheel | ||
- name: Build | ||
run: | ||
python -m build | ||
- name: Publish | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
repository_url: https://upload.pypi.org/legacy/ | ||
- name: Install Hatch | ||
run: pipx install hatch | ||
- name: Run tests | ||
run: hatch run test:test | ||
- name: Build dist | ||
run: hatch build | ||
# - name: Publish | ||
# run: hatch publish -u __token__ -a ${{ secrets.PYPI_API_TOKEN }} | ||
|