tahamajs's picture
download
raw
1.09 kB
name: Deploy Frontend to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm ci || npm install
- name: Build Project
run: npm run build
- name: Copy index.html to 404.html for SPA Routing
run: cp dist/index.html dist/404.html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

Xet Storage Details

Size:
1.09 kB
·
Xet hash:
bdf78f4d785ae3bb28d64510cbbc6e63b82a7e7c708b4ccf40c9b7794ad49982

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.