Skip to content

Commit

Permalink
Add gh-pages workflow for deploying
Browse files Browse the repository at this point in the history
DarwinsBuddy committed Sep 7, 2024
1 parent 86a25cc commit d4a591e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:

jobs:
release_website:
name: Release website to GithubPages
permissions:
contents: read
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22'
check-latest: true
- name: "Install depepdencies"
run: npm ci
- name: "Build"
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload des dist-Ordners
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d4a591e

Please sign in to comment.