This action bumps hatch hatch projects. This is pretty rigidly setup for my workflow, and is not likely to work for everyone. If you want something different, fork it and make it work for you.
- uses: waylonwalker/hatch-version-action
I made an example project with hatch new
and added this example workflow.
name: Use hatch-version-action
on:
push:
branches: [ "*" ]
workflow_dispatch:
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.pypi_token }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: waylonwalker/hatch-action@v2
with:
before-command: "test-lint"
Here is what some runs using this action look like.
You will need to get a token, and upload it to your projects secrets, and pass it in as the HATCH_INDEX_AUTH
env variable.