diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f60a9a3..dbda95e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,17 @@ jobs: id-token: write steps: + - name: Generate App Token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} - name: Install uv uses: astral-sh/setup-uv@v4 @@ -28,10 +36,10 @@ jobs: - name: Configure Git run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "brix-release-bot[bot]" + git config user.email "brix-release-bot[bot]@users.noreply.github.com" - name: Python Semantic Release env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.app-token.outputs.token }} run: uv run semantic-release version --vcs-release diff --git a/pyproject.toml b/pyproject.toml index e322c94..0eb0853 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,6 +128,8 @@ version_toml = ["pyproject.toml:project.version"] branch = "main" commit_message = "chore(release): {version}" build_command = "uv build" +upload_to_vcs_release = true +dist_glob_patterns = ["dist/*"] [tool.semantic_release.changelog.default_templates] changelog_file = "CHANGELOG.md"