Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.51 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.51 KB

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.

Example usage

- uses: waylonwalker/hatch-version-action

Example project

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"

Example Runs

Here is what some runs using this action look like.

Publishing

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.