Uh oh!
There was an error while loading. Please reload this page.
chore(release): prepare 0.2.2 (#208) #6
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: | |
| - "create-awesome-python-app@*" | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Tag name (create-awesome-python-app@X.Y.Z)" | |
| required: false | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: .python-version | |
| - run: uv sync --group dev | |
| - name: Resolve release version | |
| id: release | |
| run: | | |
| set -euo pipefail | |
| VERSION="${GITHUB_REF_NAME#create-awesome-python-app@}" | |
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Extract release notes | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| uv run python scripts/extract_release_notes.py "${{ steps.release.outputs.version }}" --output release-notes.md | |
| - name: Build packages | |
| run: | | |
| mkdir -p dist-core dist-cli | |
| uv build --package create-python-app-core --out-dir dist-core | |
| uv build --package create-awesome-python-app --out-dir dist-cli | |
| # Combined tree for GitHub Release assets | |
| mkdir -p dist | |
| cp dist-core/* dist-cli/* dist/ | |
| ls -la dist-core dist-cli dist | |
| - name: Create GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: dist/* | |
| body_path: release-notes.md | |
| - name: Publish create-python-app-core to PyPI | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: dist-core/ | |
| skip-existing: true | |
| - name: Publish create-awesome-python-app to PyPI | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: dist-cli/ | |
| skip-existing: true |