From 89d1a039a13710a9fef43f30533c93426e6413fe Mon Sep 17 00:00:00 2001 From: pederhan Date: Mon, 10 Jun 2024 14:37:47 +0200 Subject: [PATCH] Rename binary after creation --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9c768830..bbf5e3a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,10 +56,15 @@ jobs: python -m ensurepip --upgrade python -m pip install tox tox-uv tox-gh-actions tox + + - name: Rename binary + run: | + mv dist/mreg-cli${{ contains(matrix.os, 'windows') && '.exe' || '' }} dist/mreg-cli-${{ matrix.os }}-${{ matrix.python-version }}${{ contains(matrix.os, 'windows') && '.exe' || '' }} + - uses: actions/upload-artifact@v4 with: name: mreg-cli-${{ matrix.os }}-${{ matrix.python-version }}${{ contains(matrix.os, 'windows') && '.exe' || '' }} - path: dist/mreg-cli${{ contains(matrix.os, 'windows') && '.exe' || '' }} + path: dist/mreg-cli-${{ matrix.os }}-${{ matrix.python-version }}${{ contains(matrix.os, 'windows') && '.exe' || '' }} if-no-files-found: error