feat(actions): push dist to dist branch
This commit is contained in:
parent
a77ac42655
commit
c1c93b537e
8 changed files with 13 additions and 271 deletions
|
@ -1,4 +1,5 @@
|
|||
name: build dist
|
||||
name: Build and Deploy Dist
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -6,11 +7,11 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-dist:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup bun.sh
|
||||
|
@ -18,15 +19,21 @@ jobs:
|
|||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Update dependencies
|
||||
- name: Update dependencies and build
|
||||
run: |
|
||||
bun install
|
||||
bun run build
|
||||
|
||||
- name: Commit updates
|
||||
- name: Checkout dist branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: dist
|
||||
clean: false
|
||||
|
||||
- name: Commit and push to dist branch
|
||||
run: |
|
||||
git config user.name "gitea-actions[bot]"
|
||||
git config user.email "gitea-actions[bot]@git.z0x.ca"
|
||||
git add -f dist
|
||||
git commit -m "ci(dist): build dist"
|
||||
git push
|
||||
git push origin dist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue