Skip to content

Commit

Permalink
chore: test build without publish
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Mar 27, 2024
1 parent bc67c43 commit 1ca236f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish.yml
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 }}

0 comments on commit 1ca236f

Please sign in to comment.