mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 01:57:11 -05:00
Changes: - Add comprehensive CI_CD.md documentation covering all 5 workflows - Fix duplicate path parameter in deploy.yml (line 43-44) - Remove unnecessary blank.yml template workflow - Document setup requirements, secrets, and branch protection - Add troubleshooting guide and workflow status badges All existing workflows verified and operational: ✅ BlackRoad OS CI (frontend validation) ✅ Backend Tests & API Connectivity ✅ Deploy to GitHub Pages ✅ Railway Secrets & Automation Audit ✅ Deploy to Railway
48 lines
1023 B
YAML
48 lines
1023 B
YAML
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Prepare static dist
|
|
# Only publish the static front-end assets (backend/static + root HTML) to Pages/GoDaddy
|
|
run: |
|
|
rm -rf dist
|
|
mkdir -p dist
|
|
cp -R backend/static/. dist/
|
|
if [ -f index.html ]; then
|
|
cp index.html dist/
|
|
fi
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v4
|
|
|
|
- name: Upload canonical frontend
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: './dist'
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|