From 9b9871df54a3fb163da3cf17409a7b664f2aa0b3 Mon Sep 17 00:00:00 2001 From: Griefed <griefed@griefed.de> Date: Sat, 2 Oct 2021 10:10:46 +0200 Subject: [PATCH] ci: Change archive names to better and more visually reflect the OS they are for. --- .github/workflows/test.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d73f9da..4b1770d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,6 +62,21 @@ jobs: # 2. ubuntu-latest # 3. windows-latest + - 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 @@ -83,22 +98,22 @@ 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 }} - base_dir: "lttmm-${{ matrix.os }}" - file_path: lttmm-app-${{ matrix.os }}.zip + root_dir: lttmm-${{ env.os }} + base_dir: "lttmm-${{ env.os }}" + file_path: lttmm-app-${{ env.os }}.zip verbose: true - name: Create tar.gz uses: ihiroky/archive-action@v1 with: - root_dir: lttmm-${{ matrix.os }} - base_dir: "lttmm-${{ matrix.os }}" - file_path: lttmm-app-${{ matrix.os }}.tar.gz + root_dir: lttmm-${{ env.os }} + base_dir: "lttmm-${{ env.os }}" + file_path: lttmm-app-${{ env.os }}.tar.gz verbose: true - name: List files -- GitLab