Bump to 0.65.2. #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: Publish | |
| on: | |
| push: | |
| tags: | |
| - "*.*.*" | |
| permissions: | |
| contents: read | |
| jobs: | |
| pypi-publish: | |
| name: Upload release to PyPI | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/project/django-unicorn/ | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.10 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Sync JS Version | |
| run: | | |
| # Extract version from tag (e.g. v1.2.3 -> 1.2.3) | |
| VERSION=${GITHUB_REF_NAME#v} | |
| echo "Syncing version $VERSION to package.json" | |
| # Update package.json without creating a git tag | |
| npm version $VERSION --no-git-tag-version | |
| - name: Build JS Assets | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Build Python Package | |
| env: | |
| SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.ref_name }} | |
| run: uv build | |
| - name: Publish package distributions to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| generate_release_notes: true |