From 5ca29d43c5bc9325cf6f37cd0fae1ada7fb1a1f4 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Tue, 19 Dec 2023 03:06:48 +0800 Subject: [PATCH] ci: upload to uniquely named artifacts (#3434) `actions/download-artifact@v4` disables uploading to same named artifact multiple times. See - https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available/ - https://github.com/actions/toolkit/tree/68f22927e727a60caff909aaaec1ab7267b39f75/packages/artifact --- .github/workflows/cd.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 55af63d0f4..8f3028dfb2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -80,7 +80,7 @@ jobs: uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/') with: - name: release + name: release-win path: | texstudio-${{ steps.package.outputs.GIT_VERSION }}-win-qt6.exe texstudio-${{ steps.package.outputs.GIT_VERSION }}-win-portable-qt6.zip @@ -143,7 +143,7 @@ jobs: uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/') with: - name: release + name: release-linux path: texstudio-${{ steps.package.outputs.GIT_VERSION }}-x86_64.AppImage @@ -230,7 +230,7 @@ jobs: uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/') with: - name: release + name: release-osx path: texstudio-${{ steps.package.outputs.GIT_VERSION }}-osx.dmg release: @@ -241,10 +241,20 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') steps: - - name: Download temp artifact + - name: Download Windows release asset(s) uses: actions/download-artifact@v4 with: - name: release + name: release-win + + - name: Download Linux release asset(s) + uses: actions/download-artifact@v4 + with: + name: release-linux + + - name: Download OS X release asset(s) + uses: actions/download-artifact@v4 + with: + name: release-osx - name: Calculate hashes run: |