From 3baa73917a7ee7d9301be7521b8a5b2ea7635550 Mon Sep 17 00:00:00 2001 From: KawaiiZapic Date: Mon, 13 May 2024 22:49:44 +0800 Subject: [PATCH] feat: auto deployment --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 25d1417..0a81bae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,7 +36,10 @@ jobs: run: mkdir Matecho && mv dist Matecho/Matecho - name: Upload artifact + id: artifact-upload uses: actions/upload-artifact@v4 with: name: Matecho-${{ github.sha }} path: Matecho + - name: Update deployment + run: "curl -H 'X-Authorization: ${{ secrets.update_access_token }}' https://matecho-dev.zapic.moe/index.php/UpdateMatecho?artifact_id=${{ steps.artifact-upload-step.outputs.artifact-id }}"