From b12e7e30d9a8584e91c9308284c50defbb74c9f3 Mon Sep 17 00:00:00 2001 From: Henrik Nygren Date: Thu, 5 Oct 2023 15:53:08 +0300 Subject: [PATCH] Fixes --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec3fb70..995f4bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,9 +38,22 @@ jobs: - name: Sign the macos-version build if: ${{ matrix.os == 'macos-latest' }} run: codesign --force -s - ./dist/main + - name: Set env for release + run: echo "OS=windows" >> $GITHUB_ENV + if: ${{ matrix.os == 'windows-latest' }} + - name: Set env for release + run: echo "OS=linux" >> $GITHUB_ENV + if: ${{ matrix.os == 'ubuntu-latest' }} + - name: Set env for release + run: echo "OS=macos" >> $GITHUB_ENV + if: ${{ matrix.os == 'macos-latest' }} + + - name: Make binary executable + if: ${{ matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' }} + run: chmod +x ./dist/main - name: Rename built binary - run: poetry run mv ./dist/main ./dist/feedback-data-converter-${{ matrix.os }} + run: poetry run mv ./dist/main ./dist/feedback-data-converter-${{ env.OS }} - name: Store built binary uses: actions/upload-artifact@v3 @@ -61,7 +74,7 @@ jobs: name: converter-binary path: ./dist/ - name: Set env for release - run: echo "DATE=$(date +'%Y-%m-%d-%H-%M')" >> $GITHUB_ENV + run: echo "DATE=$(date +'%Y-%m-%d/%H-%M')" >> $GITHUB_ENV - uses: rickstaa/action-create-tag@v1 id: "tag_create" with: