Merge pull request #1068 from TMS-Uni-Stuttgart/Feature-user-xlsx-export #1121
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: Docs | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build_and_deploy: | |
name: Build Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Prepare pnpm using Corepack | |
run: corepack prepare pnpm | |
- name: Install node packages 📦 | |
run: | | |
pnpm install --frozen-lockfile | |
env: | |
CI: true | |
- name: Build docs 🔧 | |
working-directory: docs/ | |
run: | | |
pnpm build | |
- name: Setup Pages | |
if: github.event_name != 'pull_request' | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
if: github.event_name != 'pull_request' | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs/build' | |
- name: Deploy to GitHub Pages | |
if: github.event_name != 'pull_request' | |
id: deployment | |
uses: actions/deploy-pages@v4 |