From 397a2d5e02bcdb1bbb00f51e12c3e28d06018c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= <86352901+LucasVbr@users.noreply.github.com> Date: Mon, 14 Jul 2025 01:00:06 +0200 Subject: [PATCH] fix: Add workflow Took 2 minutes --- .github/workflows/deploy.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..58a8e66 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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