From d6bb71cba4f7ef11b2a3b57ba09f39b861afb39f Mon Sep 17 00:00:00 2001 From: z0x Date: Sat, 25 Jan 2025 14:37:40 -0500 Subject: [PATCH] fix(actions) --- .gitea/workflows/build-dist.yaml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-dist.yaml b/.gitea/workflows/build-dist.yaml index 2851053..8012598 100644 --- a/.gitea/workflows/build-dist.yaml +++ b/.gitea/workflows/build-dist.yaml @@ -23,11 +23,26 @@ jobs: - name: Build run: bun run build - - - name: Push - uses: s0/git-publish-subdir-action@develop - env: - REPO: git@10.0.0.5:3030:z0x/z0x.ca.git - BRANCH: build - FOLDER: dist - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }} + + - name: Checkout build branch + uses: actions/checkout@v4 + with: + ref: build + path: build + + - name: Copy dist to build branch + run: | + mkdir -p build/dist + cp -R dist/* build/dist/ + + - name: Configure Git + run: | + git config --local user.name "gitea-actions[bot]" + git config --local user.email "gitea-actions[bot]@git.z0x.ca" + + - name: Commit and Push changes + run: | + cd build + git add . + git commit -m "ci(dist): build dist" || echo "No changes to commit" + git push origin build