Files
blackroad-operating-system/.github/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 44: mapping key "path" already defined at line 43
2025-11-16 02:12:41 -06:00

49 lines
1.0 KiB
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'
path: 'backend/static'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4