fix: remove pydantic v2 depricated methods #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: PyPI upload | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- uses: actions/checkout@v3 | |
- name: Extract branch name | |
shell: bash | |
run: | | |
echo "##[set-output name=name;]$(echo ${GITHUB_REPOSITORY#*/})" | |
echo "##[set-output name=ver;]$(echo ${GITHUB_REF#refs/*/})" | |
echo "##[set-output name=minor_ver;]$(TMP_VAR=${GITHUB_REF#refs/*/}; echo ${TMP_VAR%.*})" | |
echo "##[set-output name=major_ver;]$(TMP_VAR=${GITHUB_REF#refs/*/}; echo ${TMP_VAR%.*.*})" | |
echo "##[set-output name=sha;]$(git rev-parse --short "$GITHUB_SHA")" | |
id: extract_name_and_version | |
- run: sed -i 's/0.1.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' pyproject.toml | |
- run: sed -i 's/0.1.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' makeqr/version.py | |
- run: python -m pip install poetry~=1.8.0 | |
- run: poetry build | |
- run: poetry config http-basic.pypi __token__ ${{ secrets.PYPI_PASS }} | |
- run: poetry publish |