From 5b80c113cfd0d10aa967f4ecfb63e480b674cb5c Mon Sep 17 00:00:00 2001 From: tenkuma Date: Wed, 13 May 2026 23:33:06 -0300 Subject: [PATCH] Adicionar .github/workflows/build.yml --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 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 0000000..8d068a5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: Build Eleventy + +on: + push: + paths-ignore: + - '/maintenance/**' + - '/README.md' + branches: + - main + workflow_dispatch: + pull_request: + paths-ignore: + - '/maintenance/**' + - '/README.md' + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [24.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies & build + run: | + npm ci + npm run build -- --pathprefix="" + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + publish_dir: ./docs + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file