chore(release): bump to v0.2.0 #2
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Verify tag matches distro.toml version | |
| run: | | |
| TOML_VERSION="$(grep '^version' distro.toml | sed -E 's/^[^=]+=\s*"([^"]+)".*/\1/')" | |
| TAG_VERSION="${GITHUB_REF_NAME#v}" | |
| if [[ "$TAG_VERSION" != "$TOML_VERSION" ]]; then | |
| echo "ERROR: tag ${GITHUB_REF_NAME} does not match distro.toml version ${TOML_VERSION}" | |
| exit 1 | |
| fi | |
| - name: Build release archive | |
| run: | | |
| VERSION="${GITHUB_REF_NAME}" | |
| zip "managed-python-${VERSION}.zip" \ | |
| distro.toml install.sh install.ps1 install.bat setup.py | |
| - name: Create GitHub release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| VERSION="${GITHUB_REF_NAME}" | |
| gh release create "$VERSION" \ | |
| "managed-python-${VERSION}.zip" \ | |
| --title "$VERSION" \ | |
| --generate-notes |