temp tester #4
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: temp tester | |
on: | |
workflow_dispatch: | |
inputs: | |
vt: | |
type: choice | |
description: 'What is the version type (patch, minor major)' | |
required: true | |
options: | |
- patch | |
- minor | |
- major | |
default: 'patch' | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ".[build]" | |
- name: Bump version | |
run: | | |
bumpver update --no-fetch --${{ github.event.inputs.vt }} | |
echo "ICATCHER_VER=$(bumpver show -n | awk 'END{print $NF}')" >> $GITHUB_ENV | |
- name: Tag version | |
run: | | |
git tag | |
git tag ${{ env.ICATCHER_VER }} master | |
git tag | |
- name: Build package | |
run: python -m build |