From 813a782dbe91470c56626211fbea6fa774f3ddf9 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 12 Nov 2025 03:36:20 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A7=AA=20Run=20`gh=20release`=20w/o?= =?UTF-8?q?=20Git=20in=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is possible to use `gh release create --repo=` [[1]] so that GH CLI does not need to infer the repository information from the Git repository. GH CLI supports passing such options via environment values [[2]], which is what this patch makes use of. It's a follow-up for #13891. [1]: https://cli.github.com/manual/gh_release_create [2]: https://cli.github.com/manual/gh_help_environment --- .github/workflows/deploy.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed7de4cc0c5..ca6f75d8e05 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -120,11 +120,6 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - persist-credentials: true - - name: Download Package uses: actions/download-artifact@v6 with: @@ -140,6 +135,7 @@ jobs: - name: Publish GitHub Release env: VERSION: ${{ github.event.inputs.version }} + GH_REPO: ${{ github.repository }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release create --notes-file gh-release-notes.md --verify-tag "$VERSION" dist/* From a9fdd7f4f61eb381b897254d46d2351dae2256a1 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 12 Nov 2025 03:42:45 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20Add=20a=20change=20note=20fo?= =?UTF-8?q?r=20PRs=20#13942=20and=20#13891?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog/13891.contrib.rst | 1 + changelog/13942.contrib.rst | 3 +++ 2 files changed, 4 insertions(+) create mode 120000 changelog/13891.contrib.rst create mode 100644 changelog/13942.contrib.rst diff --git a/changelog/13891.contrib.rst b/changelog/13891.contrib.rst new file mode 120000 index 00000000000..b5cf5102ff8 --- /dev/null +++ b/changelog/13891.contrib.rst @@ -0,0 +1 @@ +13942.contrib.rst \ No newline at end of file diff --git a/changelog/13942.contrib.rst b/changelog/13942.contrib.rst new file mode 100644 index 00000000000..cdf23e68455 --- /dev/null +++ b/changelog/13942.contrib.rst @@ -0,0 +1,3 @@ +The CI/CD part of the release automation is now capable of +creating GitHub Releases without having a Git checkout on +disk -- by :user:`bluetech` and :user:`webknjaz`.