fix(actions)
This commit is contained in:
parent
8f8d08f30f
commit
d6bb71cba4
1 changed files with 23 additions and 8 deletions
|
@ -23,11 +23,26 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: bun run build
|
||||||
|
|
||||||
- name: Push
|
- name: Checkout build branch
|
||||||
uses: s0/git-publish-subdir-action@develop
|
uses: actions/checkout@v4
|
||||||
env:
|
with:
|
||||||
REPO: git@10.0.0.5:3030:z0x/z0x.ca.git
|
ref: build
|
||||||
BRANCH: build
|
path: build
|
||||||
FOLDER: dist
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
- 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue