From fae128ff8fc42991fe1dc04153d89d5c97cbe028 Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Wed, 1 Apr 2026 00:11:46 -0700 Subject: [PATCH 1/3] Add checkout action to GitHub release step `gh release` need to run from within the repository --- CHANGELOG.md | 4 ++++ .../{% if enable_pypi %}release.yaml{% endif %}.jinja | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4462a80..558a522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +* Add repository checkout action to GitHub release creation job + ## [0.1.1] - 2026-03-31 ### Fixed diff --git a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja index f6116c9..cff1ead 100644 --- a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja +++ b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja @@ -60,6 +60,9 @@ jobs: permissions: contents: write steps: + - name: 💾 Check out repository + uses: actions/checkout@v4 + - name: 🔽 Download artifact uses: actions/download-artifact@v4 with: From 8fe9a99075bc1da0f45384d808259e87a9ff4d46 Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Wed, 1 Apr 2026 00:15:05 -0700 Subject: [PATCH 2/3] Fetch full repository history for GitHub release creation --- .../workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja index cff1ead..5059a4c 100644 --- a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja +++ b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_pypi %}release.yaml{% endif %}.jinja @@ -62,6 +62,8 @@ jobs: steps: - name: 💾 Check out repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: 🔽 Download artifact uses: actions/download-artifact@v4 From 0ff7f98f4ddbae4d8c0485dec08deb694347923f Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Wed, 1 Apr 2026 00:16:37 -0700 Subject: [PATCH 3/3] Apply release workflow updates to project --- .copier-answers.yml | 2 +- .github/workflows/release.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 29f97a6..2876072 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 0.1.0 +_commit: 0.1.1 _src_path: . copyright_holder: Stephen Kent copyright_holder_email: smkent@smkent.net diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 480c28a..9082b6f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,6 +59,11 @@ jobs: permissions: contents: write steps: + - name: 💾 Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: 🔽 Download artifact uses: actions/download-artifact@v4 with: