Skip to content

Merge pull request #661 from staticdev/dependabot/pip/dot-github/work… #36

Merge pull request #661 from staticdev/dependabot/pip/dot-github/work…

Merge pull request #661 from staticdev/dependabot/pip/dot-github/work… #36

Workflow file for this run

name: Release Dev
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Hatch
run: |
pip install --constraint=.github/workflows/hatch-constraints.txt hatch
hatch --version
- name: Build package
run: |
hatch build
- name: Publish package on TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/