Deploy Documentation To GitHub Pages After Merge #240
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Documentation | |
run-name: Deploy Documentation To GitHub Pages After Merge | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-deploy: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
id-token: write | |
pages: write | |
steps: | |
- name: 💾 Checking out the repository | |
uses: actions/checkout@v4 | |
- name: ⚙️ Setting up the MonkJs project | |
uses: ./.github/actions/monkjs-set-up | |
with: | |
build-env: production | |
- name: 📚 Building the documentation | |
run: yarn build:documentation | |
- name: 📃 Setting Up GitHub Pages | |
uses: actions/[email protected] | |
- name: 📦 Uploading the artifact | |
uses: actions/[email protected] | |
with: | |
path: documentation/build | |
- name: 🌐 Deploying the documentation | |
uses: actions/[email protected] |