ci: use Gitea-compatible artifact actions for multi-job workflow
Build and Deploy / Build release archive (release) Successful in 35s
Build and Deploy / Upload to Gitea Release (release) Failing after 14s
Build and Deploy / Deploy to onixbyte.cn (release) Failing after 21s

This commit is contained in:
2026-06-17 00:32:55 +08:00
parent 66cb747e34
commit fbf87fa810
+31 -2
View File
@@ -5,8 +5,8 @@ on:
types: [published]
jobs:
build-deploy:
name: Build, Release and Deploy
build:
name: Build release archive
runs-on: ubuntu-latest
steps:
@@ -30,6 +30,24 @@ jobs:
- name: Build release archive
run: pnpm build:tar
- name: Upload build artifact
uses: maxsargentdev/gitea-upload-artifact@v4
with:
name: dist-archive
path: dist.tar.gz
retention-days: 1
upload-release-asset:
name: Upload to Gitea Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: christopherHX/gitea-download-artifact@v4
with:
name: dist-archive
- name: Upload to Gitea Release
run: |
set -e
@@ -42,6 +60,17 @@ jobs:
--data-binary "@dist.tar.gz" \
"${URL}"
deploy-to-server:
name: Deploy to onixbyte.cn
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: christopherHX/gitea-download-artifact@v4
with:
name: dist-archive
- name: Upload archive to server
env:
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}