chore(release): prepare 0.1.0 PyPI packages (#151) #1
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 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: .python-version | |
| - run: uv sync --group dev | |
| # Publish core first so the CLI wheel can resolve create-python-app-core on PyPI. | |
| - name: Build packages | |
| run: | | |
| uv build --package create-python-app-core | |
| uv build --package create-awesome-python-app | |
| ls -la dist/ | |
| - name: Create GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/* | |
| body: | | |
| First public release. Install with: | |
| ```bash | |
| uvx create-awesome-python-app@0.1.0 --help | |
| ``` | |
| Catalog: https://github.com/Create-Python-App/cpa-templates | |
| - name: Publish to PyPI (OIDC) | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: dist/ |