From 93788814dd2769d965a78ac860671e58a12f0f32 Mon Sep 17 00:00:00 2001 From: Darren Li Date: Sat, 29 Jun 2024 13:14:54 +1000 Subject: [PATCH] Added artifacts storing when not release --- .github/workflows/deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5b86a55..63c53c7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,7 +58,15 @@ jobs: mv release/docfd docfd tar -cvzf docfd-${{ env.GITHUB_TAG }}-${{ env.OS_SHORT_NAME }}.tar.gz docfd + - name: Upload artifacts + if: ${{ github.event_name != 'release' }} + uses: actions/upload-artifact@v4 + with: + name: docfd-${{ env.GITHUB_TAG }}-${{ env.OS_SHORT_NAME }}.tar.gz + path: docfd-${{ env.GITHUB_TAG }}-${{ env.OS_SHORT_NAME }}.tar.gz + - name: Release + if: ${{ github.event_name == 'release' }} uses: softprops/action-gh-release@v1 with: files: |