Skip to content

Commit

Permalink
Add deploy website pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
StuckiSimon committed Aug 11, 2024
1 parent 9d46347 commit 1250f60
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy Website
on:
push:
branches: [main, chore/test-ci-deploy]
jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install dependencies
working-directory: website
run: npm ci
- name: Build website
working-directory: website
run: npm run build

- name: Upload Build Artifact
working-directory: website
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
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

0 comments on commit 1250f60

Please sign in to comment.