Skip to content

v5.11.0

v5.11.0 #11

Workflow file for this run

---
name: Test PyPI publish
on:
release:
types: [prereleased]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}
- name: Build and publish
run: |
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi -u __token__ -p ${{ secrets.PYPI_TEST_API_TOKEN_HERA }} --skip-existing
rm -rf dist/*
- name: Rename hera to hera-workflows for backwards compat
run: |
sed -i 's/name = "hera" # project-name/name = "hera-workflows" # project-name/g' pyproject.toml
sed -i 's/name = "hera" # project-name/name = "hera-workflows" # project-name/g' src/hera/_version.py
- name: Build and publish
run: |
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi -u __token__ -p ${{ secrets.PYPI_TEST_API_TOKEN }} --skip-existing