28 lines
570 B
YAML
28 lines
570 B
YAML
name: Build and Deploy Dist
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Build and Push
|
|
steps:
|
|
- name: Checkout main branch
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Build
|
|
run: bun run build
|
|
|
|
- name: Push
|
|
uses: s0/git-publish-subdir-action@develop
|
|
env:
|
|
REPO: git@git.home.arpa:z0x/z0x.ca.git
|
|
BRANCH: build
|
|
FOLDER: dist
|
|
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|