Skip to content

Commit

Permalink
ci: build hatch on tag pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
dala committed Mar 4, 2024
1 parent 0bc0c77 commit 4141a6d
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
py: pypy3

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -38,3 +38,22 @@ jobs:
run: make test
shell: bash

build_package:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Hatch
run: |
python -m pip install -U hatch
- name: Build package
run: |
hatch build
- name: Publish
run: |
hatch publish

0 comments on commit 4141a6d

Please sign in to comment.