Skip to content

Commit

Permalink
feat: added deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-mayer committed Sep 25, 2024
1 parent b05965c commit 65d2128
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy_website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy Website

on:
push:
branches:
- main
paths:
- website

jobs:
build:
name: Build Website
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: "website/package.json"
- name: Install dependencies
run: |
cd website
npm install
- name: Run npm build
run: |
cd website
npm run build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: website/build
deploy:
name: Deploy Website
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const config: Config = {
organizationName: "caas-team",
projectName: "GoKubeDownscaler",

trailingSlash: false,

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",

Expand Down

0 comments on commit 65d2128

Please sign in to comment.