Skip to content

2.0.0a2

2.0.0a2 #8

Workflow file for this run

---
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/checkout@v3
- name: Extract branch name
shell: bash
run: |
echo "##[set-output name=ver;]$(echo ${GITHUB_REF#refs/*/})"
id: extract_name_and_version
- run: sed -i 's/0.0.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' pyproject.toml
- run: head -n 10 pyproject.toml
- run: sed -i 's/0.0.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' winregistry.py
- run: python -m pip install poetry~=1.8.4
- run: poetry build
- run: poetry config http-basic.pypi __token__ ${{ secrets.PYPI_PASS }}
- run: poetry publish