From 56dc1b20444fc66f0f09679af4e931a456807d10 Mon Sep 17 00:00:00 2001 From: an-lee Date: Fri, 1 Mar 2024 14:10:46 +0800 Subject: [PATCH] refactor --- .github/workflows/build-enjoy-app.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-enjoy-app.yml b/.github/workflows/build-enjoy-app.yml index acb051ed..0839d0fe 100644 --- a/.github/workflows/build-enjoy-app.yml +++ b/.github/workflows/build-enjoy-app.yml @@ -1,5 +1,5 @@ name: Build Enjoy App -on: +on: workflow_dispatch: inputs: os: @@ -26,10 +26,16 @@ jobs: with: node-version: 20 + - name: Get current time + uses: josStorer/get-current-time@v2 + id: current-time + with: + format: YYYYMMDD-HH + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies @@ -62,5 +68,9 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: Enjoy-${{ runner.os }}-${{ github.event.inputs.arch }}-build - path: enjoy/out/make/**/* + name: Enjoy-${{ runner.os }}-${{ github.event.inputs.arch }}-build-${{ steps.current-time.outputs.time }} + path: | + enjoy/out/make/**/*.deb + enjoy/out/make/**/*.rpm + enjoy/out/make/**/*.zip + enjoy/out/make/**/*.exe