From 4b903c09f9eb1a1a82801e09ea80adfa656e741b Mon Sep 17 00:00:00 2001 From: Ian Krieger <48930920+IanKrieger@users.noreply.github.com> Date: Mon, 20 Nov 2023 09:33:41 -0500 Subject: [PATCH] feat: add deployment config (#8) --- .github/workflows/gh-pages.yml | 38 ++++++++++++++++++++++++++++++++++ static/CNAME | 1 + 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/gh-pages.yml create mode 100644 static/CNAME 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