z0x.ca/.gitea/workflows/build-dist.yaml

39 lines
845 B
YAML

name: Build and Deploy Dist
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v4
- name: Setup bun.sh
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Update dependencies and build
run: |
bun install
bun run build
- 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 origin dist