chore: Update log21 to v3.0.0 #18
This file contains hidden or 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: "auto-release" | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| jobs: | |
| pre-release: | |
| name: "Auto Release" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build setuptools wheel | |
| - name: Build | |
| run: | | |
| python -m build | |
| pip install dist/*.whl | |
| echo "PACKAGE_VERSION=$(python -c 'import whois21; print(whois21.__version__)')" >> $GITHUB_ENV | |
| - name: check-version | |
| uses: KyoriPowered/action-regex-match@v3 | |
| id: check-version | |
| with: | |
| text: ${{ env.PACKAGE_VERSION }} | |
| regex: '\d+\.\d+\.\d+a\d+' | |
| - uses: "marvinpinto/action-automatic-releases@latest" | |
| if: ${{ steps.check-version.outputs.match == '' }} # If didn't match | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "${{ env.PACKAGE_VERSION }}" | |
| title: "Auto Build" | |
| files: | | |
| dist/* |