1.4.0 #20
This file contains 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: Create Release Tag | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
determine-release: | |
runs-on: ubuntu-latest | |
environment: psr | |
env: | |
UV_TOOL_DIR: /tmp/.uv-tool | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.sha }} | |
ssh-key: ${{ secrets.GH_DEPLOY_SSH_KEY }} | |
- name: Force correct release branch | |
run: | | |
git checkout -B ${{ github.ref_name }} ${{ github.sha }} | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
tool-bin-dir: "/tmp/tool-bin" | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "backend/pyproject.toml" | |
- name: Restore uv tools | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/tool-bin | |
key: uv-tools-${{ runner.os }}-psr-v9.11.1 | |
restore-keys: | | |
uv-tools-${{ runner.os }}-psr-v9.11.1 | |
uv-tools-${{ runner.os }} | |
- name: Install Python Semantic Release | |
env: | |
UV_TOOL_DIR: /tmp/release-tool-bin | |
run: uv tool install python-semantic-release@v9.11.1 | |
- name: Run Semantic Release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./scripts/release-needed.sh |