Skip to content

Commit

Permalink
Add github action to deploy klaro ui sample to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCDL committed Dec 18, 2024
1 parent 5e0d14f commit e29c1d7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish to GitHub Pages
on: push
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Create deployment build
run: npm run deploy
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload deployment build
uses: actions/upload-pages-artifact@v3
with:
path: 'deploy'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit e29c1d7

Please sign in to comment.