From f3361d48830a56b7e40578fb537cbc1307d2bb5e Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Wed, 17 Jan 2024 09:10:32 +0100 Subject: [PATCH] ci: Use output path from build script --- .github/workflows/release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf2ce018..b86681a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,14 +26,20 @@ jobs: flutter-version: '3.16.2' channel: 'stable' - name: Build - run: ./build.sh -v ${{ github.ref_name }} + id: build + shell: bash + run: | + ARTIFACT_PATH=$(./build.sh -v ${{ github.ref_name }} | tail -1) + ARTIFACT_NAME=$(basename "$ARTIFACT_PATH") + echo "artifact-path=$(echo $ARTIFACT_PATH)" >> $GITHUB_OUTPUT + echo "artifact-name=$(echo $ARTIFACT_NAME)" >> $GITHUB_OUTPUT working-directory: wrestling_scoreboard_server - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ github.token }} - file: ./wrestling_scoreboard_server/build/wrestling_scoreboard_server-${{ matrix.platform }}-${{ github.ref_name }}.tar.gz - asset_name: wrestling_scoreboard_server-${{ matrix.platform }}-${{ github.ref_name }}.tar.gz + file: wrestling_scoreboard_server/${{ steps.build.outputs.artifact-path }} + asset_name: ${{ steps.build.outputs.artifact-name }} tag: ${{ github.ref }} release-client: