diff --git a/.github/workflows/deploy-github-pages.yaml b/.github/workflows/deploy-github-pages.yaml new file mode 100644 index 000000000..9052a6245 --- /dev/null +++ b/.github/workflows/deploy-github-pages.yaml @@ -0,0 +1,38 @@ +name: Deploy to GitHub Pages + +permissions: + contents: write + actions: write + pages: write + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + cache-dependency-path: package-lock.json + + - name: 🤔 Sync latest Upstream + run: make sync-docs + + - name: Build website 🔨 + run: make build-docs + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.6.4 + with: + branch: gh-pages + folder: build + single-commit: true diff --git a/.github/workflows/deploy-github-pages.yaml.example b/.github/workflows/deploy-github-pages.yaml.example deleted file mode 100644 index 9ec6b448d..000000000 --- a/.github/workflows/deploy-github-pages.yaml.example +++ /dev/null @@ -1,38 +0,0 @@ -# name: Deploy to GitHub Pages - -# permissions: -# contents: write -# actions: write -# pages: write - -# on: -# workflow_dispatch: -# push: -# branches: -# - main - -# jobs: -# deploy: -# name: Deploy to GitHub Pages -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v4 - -# - uses: actions/setup-node@v4 -# with: -# node-version: 18 -# cache: npm -# cache-dependency-path: package-lock.json - -# - name: 🤔 Sync latest Upstream -# run: make sync-docs - -# - name: Build website 🔨 -# run: make build-docs - -# - name: Deploy 🚀 -# uses: JamesIves/github-pages-deploy-action@v4.6.4 -# with: -# branch: gh-pages -# folder: build -# single-commit: true