From 4a835f0f3f1fe3c8096f862cf6600781c0a7d28d Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Tue, 21 Apr 2026 13:21:44 -0500 Subject: [PATCH] ci: add build and deploy workflow for gh-pages --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..eb8f0d1204 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build + +on: + # Run the build for pushes and pull requests targeting master + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + # Checkout and setup + - name: Checkout + uses: actions/checkout@v4 + # Install uv + - name: Install + uses: astral-sh/setup-uv@v5 + # Sync uv + - name: Sync + run: uv sync + # Build site + - name: Build + run: uv run zensical build + # Deploy, limited to the master branch + - name: Deploy + if: success() && github.ref == 'refs/heads/master' + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./site + github_token: ${{ secrets.GITHUB_TOKEN }} + cname: bitcoindevkit.org + user_name: "github-actions[bot]" + user_email: "github-actions[bot]@users.noreply.github.com" + -- 2.49.0