diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..eb2a1473 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,38 @@ +name: Build and Deploy Docs + +on: + push: + branches: + - main + pull_request: + +jobs: + build-publish: + runs-on: ubuntu-latest + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - name: Checkout + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + + - name: Setup Node.js 18.x + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 + with: + node-version: 18.x + + - name: Install dependencies + run: npm ci + + - name: Build website + run: npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build + user_name: brave-builds[bot] + user_email: brave-builds@brave.com diff --git a/static/CNAME b/static/CNAME new file mode 100644 index 00000000..254c0257 --- /dev/null +++ b/static/CNAME @@ -0,0 +1 @@ +help.ads.brave.com