Skip to content

Commit

Permalink
Add action to deploy site
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 27, 2024
1 parent 286c228 commit f1914b1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Build Site
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Build Site
run: ./scripts/build_site.sh
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: docs-site/
deploy:
needs: build
if: github.ref == 'refs/heads/beta'
name: Deploy
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 f1914b1

Please # to comment.