From 8c24d3e662a4dc6b75598e7a02bda13422a11115 Mon Sep 17 00:00:00 2001 From: Griefed <griefed@griefed.de> Date: Sat, 2 Oct 2021 10:16:03 +0200 Subject: [PATCH] ci: Add changes from test to release --- .github/workflows/github_release.yml | 35 ++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml index 279fbcd..6817dfd 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/github_release.yml @@ -153,6 +153,22 @@ jobs: with: fetch-depth: 0 + - name: Check for macOS + if: ${{ matrix.os == 'macos-latest' }} + run: | + echo "os=MAC" >> $GITHUB_ENV + + - name: Check for Ubuntu + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + echo "os=UBUNTU" >> $GITHUB_ENV + + - name: Check for Windows + if: ${{ matrix.os == 'windows-latest' }} + run: | + echo "os=WINDOWS" >> $GITHUB_ENV + + # SETUP NODE ENVIRONMENT - name: Setup Node.js environment uses: actions/setup-node@v2.4.1 @@ -174,19 +190,19 @@ jobs: - name: Rename folders run: | - mv dist/electron/Let* lttmm-${{ matrix.os }} + mv dist/electron/Let* lttmm-${{ env.os }} # Electron Archives - name: Create zip uses: ihiroky/archive-action@v1 with: - root_dir: lttmm-${{ matrix.os }} - file_path: lttmm-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.zip + root_dir: lttmm-${{ env.os }} + file_path: lttmm-app-${{ env.os }}-${{ needs.release.outputs.newtag }}.zip - name: Create tar.gz uses: ihiroky/archive-action@v1 with: - root_dir: lttmm-${{ matrix.os }} - file_path: lttmm-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.tar.gz + root_dir: lttmm-${{ env.os }} + file_path: lttmm-app-${{ env.os }}-${{ needs.release.outputs.newtag }}.tar.gz # Upload App Assets - name: Upload App Archive zip @@ -196,8 +212,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.release.outputs.uploadurl }} - asset_path: ./lttmm-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.zip - asset_name: lttmm-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.zip + asset_path: ./lttmm-app-${{ env.os }}-${{ needs.release.outputs.newtag }}.zip + asset_name: lttmm-app-${{ env.os }}-${{ needs.release.outputs.newtag }}.zip asset_content_type: application/zip - name: Upload App Archive tar.gz id: upload-release-asset-archive-targz @@ -206,7 +222,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.release.outputs.uploadurl }} - asset_path: ./lttmm-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.tar.gz - asset_name: lttmm-app-${{ matrix.os }}-${{ needs.release.outputs.newtag }}.tar.gz + asset_path: ./lttmm-app-${{ env.os }}-${{ needs.release.outputs.newtag }}.tar.gz + asset_name: lttmm-app-${{ env.os }}-${{ needs.release.outputs.newtag }}.tar.gz asset_content_type: application/gzip - -- GitLab