Skip to content

Commit 010d411

Browse files
Update deploy.yml
- Introduced .github/workflows/deploy.yml to automate QuantumCA™ dashboard deployment to GitHub Pages - Workflow triggers on push to quantumca-dev-v1.0 branch - Uses ubuntu-latest runner with Node.js 20 and npm caching for faster builds - Steps: 1. Checkout repository code 2. Setup Node.js environment 3. Install dependencies via npm ci for clean, reproducible installs 4. Build production-ready assets using npm run build 5. Deploy /dist folder to gh-pages branch using peaceiris/actions-gh-pages@v4 - Eliminates manual deployment commands (npx gh-pages -d dist) and reduces human error - Ensures every deployment is tied to a specific commit and workflow run for traceability - Aligns with compliance and audit requirements by providing a full deployment log in the Actions tab - Prepares the pipeline for future enhancements such as: * Tag-based deployments for version-aware releases * Pre-deploy security audits and browserslist updates * Integration with snapshot registry for release traceability
1 parent bfa1cec commit 010d411

1 file changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# (paste the fixed workflow YAML here)
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- quantumca-dev-v1.0 # Change if your deployment branch is different
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build-and-deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: npm
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Build project
30+
run: npm run build
31+
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v4
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./dist
37+
publish_branch: gh-pages

0 commit comments

Comments
 (0)