fix(actions)

This commit is contained in:
z0x 2025-01-25 14:37:40 -05:00
parent 8f8d08f30f
commit d6bb71cba4

View file

@ -24,10 +24,25 @@ 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