Skip to content

Commit

Permalink
Add Publish Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Sep 20, 2024
1 parent 7697ca8 commit bb6acdd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Demo Website
on:
push:
branches:
- main
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: Get Latest Code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./dist"
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1

0 comments on commit bb6acdd

Please sign in to comment.