From b6bec47d38e860daa0fda8cb22bd4f270fc28cff Mon Sep 17 00:00:00 2001 From: Christian Siewert Date: Fri, 21 Nov 2025 11:25:22 +0100 Subject: [PATCH] Upload artifacts first Artifacts have been uploaded after pushing the packages to feeds. In case the latter didn't work, the build broke and artifacts weren't accessable to push them manually. --- .github/workflows/.build-and-publish.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/.build-and-publish.yml b/.github/workflows/.build-and-publish.yml index b814826..2a88462 100644 --- a/.github/workflows/.build-and-publish.yml +++ b/.github/workflows/.build-and-publish.yml @@ -89,6 +89,13 @@ jobs: run: cp -r artifacts/build artifacts/Licensing if: ${{ github.ref_name == 'dev' || github.ref_name == 'future' || (startsWith(github.ref, 'refs/tags/v')) }} + - name: ⬆️ Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: packages + path: artifacts/packages/ + if: ${{ github.ref_name == 'dev' || github.ref_name == 'future' || (startsWith(github.ref, 'refs/tags/v')) }} + - name: 📦 Create Packages and 🚚 deliver to NuGet run: | .\set-version.ps1 -RefName ${{ github.ref_name }} -IsTag ${{ github.ref_type == 'tag' && 1 || 0 }} -BuildNumber ${{ github.run_number }} -CommitHash ${{ github.sha }} @@ -102,11 +109,4 @@ jobs: .\set-version.ps1 -RefName ${{ github.ref_name }} -IsTag ${{ github.ref_type == 'tag' && 1 || 0 }} -BuildNumber ${{ github.run_number }} -CommitHash ${{ github.sha }} .\pack-publish.ps1 -NugetApiKey ${{ secrets.MYGET_TOKEN }} -PackageTarget ${{ needs.Variables.outputs.MORYX_PACKAGE_TARGET }} shell: pwsh - if: ${{ github.ref_name == 'dev' || github.ref_name == 'future' }} - - - name: ⬆️ Upload build artifacts - uses: actions/upload-artifact@v4 - with: - name: packages - path: artifacts/packages/ - if: ${{ github.ref_name == 'dev' || github.ref_name == 'future' || (startsWith(github.ref, 'refs/tags/v')) }} \ No newline at end of file + if: ${{ github.ref_name == 'dev' || github.ref_name == 'future' }} \ No newline at end of file