From 21262e7f08a0e177b3100a24b3d1cbfff88297cf Mon Sep 17 00:00:00 2001 From: seven Date: Sun, 14 Jan 2024 18:00:06 +0800 Subject: [PATCH] feat: fix use auto relase action #3 Signed-off-by: seven --- .github/workflows/release.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27acbd3..37d7f10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,12 +35,23 @@ jobs: - run: npm run build - name: Build app run: ./scripts/make-distributions.sh + - name: Upload artifacts + uses: actions/download-artifact@v4 + with: + path: out/make/* release: - - name: Release App - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: | - LICENSE - out/make/* + needs: pre-release + runs-on: ubuntu-latest + steps: + - name: Github checkout + uses: actions/checkout@v4 + - name: Download artifacts + uses: actions/download-artifact@v4 + - name: Release App + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + LICENSE + out/make/*