From b67a6e50cad3b85305905efed1cbaf0c4e16105c Mon Sep 17 00:00:00 2001 From: rccarlson Date: Thu, 18 Dec 2025 12:19:41 -0500 Subject: [PATCH] Move static files to a public folder and implement basic deploy CI/CD config --- .github/workflows/deploy.yml | 52 +++++++++++++++++++++++++++++++++ index.html => public/index.html | 0 style.css => public/style.css | 0 3 files changed, 52 insertions(+) create mode 100644 .github/workflows/deploy.yml rename index.html => public/index.html (100%) rename style.css => public/style.css (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d0fb33f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,52 @@ +name: Build and Deploy to GitHub Pages + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + # TODO: Add test commands here + # Examples: + # - name: Install dependencies + # run: npm install + # - name: Run unit tests + # run: npm test + # - name: Run integration tests + # run: npm run test:integration + + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + needs: test + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './public' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html diff --git a/style.css b/public/style.css similarity index 100% rename from style.css rename to public/style.css