Files
LucasVbr/.github/workflows/deploy.yaml
T
2025-07-14 11:18:09 +02:00

41 lines
890 B
YAML

name: Generate README and Deploy to Main
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout dev branch
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run README generator
run: bun run build
- name: Commit to main
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout main
git checkout dev -- README.md
git add README.md
git commit -m "chore: update README [auto]"
git push origin main