Create deploy.yaml

This commit is contained in:
Lucàs
2025-07-14 00:34:01 +02:00
committed by GitHub
parent 762c1fb1a9
commit d792d7f5fe
+43
View File
@@ -0,0 +1,43 @@
name: Build and Commit README
on:
push:
branches: [dev]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run build
run: bun run build
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit README.md to main
run: |
git checkout main
git pull origin main
git checkout dev -- README.md
if git diff --quiet README.md; then
echo "No changes to README.md"
else
git add README.md
git commit -m "chore(readme): update after build [CI]"
git push origin main
fi