From 7c7db7a04e76f3e3fcf3ff91370a2f92d78bfe50 Mon Sep 17 00:00:00 2001 From: evan Date: Tue, 14 Apr 2026 20:50:44 +0800 Subject: [PATCH] ci: use single job for build and release - Gitea doesn't support upload-artifact/download-artifact - zip and release within the same job --- .gitea/workflows/ci.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ccfcae7..b81d43e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -34,28 +34,12 @@ jobs: - name: Build run: npm run build - - name: Upload build artifact - uses: actions/upload-artifact@v4 - with: - name: resume-static - path: out/ - - release: - needs: build - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' - steps: - - name: Download build artifact - uses: actions/download-artifact@v4 - with: - name: resume-static - path: out/ - - name: Create release zip - run: | - zip -r resume-latest.zip out/ + if: github.ref == 'refs/heads/main' + run: zip -r resume-latest.zip out/ - name: Create Release + if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: tag_name: latest