Skip to content

Commit

Permalink
Add autorelease via CI, refs #11
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Nov 8, 2022
1 parent e63973e commit 039b5d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,21 @@ jobs:
echo "Running the tests..."
make test
- uses: actions/upload-artifact@v3
with:
name: Upload pip cache
path: ~/.cache/pip # or path/to/artifact

publish:
needs: ["test"]
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: Download pip cache
path: ~/.cache/pip

- name: Build the package
run: |
hatch build
Expand Down

0 comments on commit 039b5d3

Please sign in to comment.