Skip to content

bump: version 0.8.1 → 0.9.0 #125

bump: version 0.8.1 → 0.9.0

bump: version 0.8.1 → 0.9.0 #125

# This workflow will upload a Python Package using Hatch when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package to Test-Pypi
on:
workflow_dispatch:
push:
tags-ignore:
- '**'
branches:
- '**'
- '!dependabot/**'
env:
FORCE_COLOR: "1"
jobs:
deploy-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade hatch
- name: Bump temp dev release
run: |
CURRENT_VERSION=$(NO_COLOR="1" hatch version)
TIMESTAMP=$(date +%s)
hatch version "$CURRENT_VERSION-$TIMESTAMP"
- name: Build package
run: hatch build
- name: Publish package
env:
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: hatch publish --repo test