From a49174b2ae4a08bb317d3b74e9a97d872f49d564 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 7 Dec 2023 09:52:32 +0100 Subject: [PATCH] attempt to fix the pipeline (2) --- .github/workflows/build.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6cfc7d8..6be64d2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,7 +4,6 @@ on: jobs: release: name: Release - ${{ matrix.platform.target }} - if: startsWith( github.ref, 'refs/tags/v' ) strategy: matrix: platform: @@ -58,18 +57,20 @@ jobs: target: ${{ matrix.platform.target }} args: "--locked --release" strip: true - - name: Print target directory - run: tree target - - name: Publish release artifacts + - name: Publish action artifact uses: actions/upload-artifact@v3 with: name: ${{ matrix.paltform.bin }}-${{ matrix.platform.target}} - path: target/release/${{ matrix.platform.bin }} - if: startsWith( github.ref, 'refs/tags/v' ) + path: target/${{ matrix.platform.target }}release/${{ matrix.platform.bin }} - name: Publish GitHub release uses: softprops/action-gh-release@v1 with: - draft: true - files: "server*" + draft: false # body_path: Changes.md if: startsWith( github.ref, 'refs/tags/v' ) + - name: Publish release artifact + uses: actions/upload-release-asset@v1 + with: + asset_path: target/${{ matrix.platform.target }}release/${{ matrix.platform.bin }} + asset_name: server-${{ matrix.platform.target }} + if: startsWith( github.ref, 'refs/tags/v' )