GitHub Pages Deployment #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHub Pages Deployment | |
| # Trigger workflow on push to main branch or manually | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: # allows manual run from Actions tab | |
| permissions: | |
| contents: read # required to read repo files | |
| pages: write # required to deploy to GitHub Pages | |
| id-token: write # required for authentication | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Checkout the repository | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # 2. Configure GitHub Pages | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| # 3. Upload Pages artifact (updated to v2) | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v2 | |
| with: | |
| path: ./ # deploy from root where index.html lives | |
| # 4. Preview artifact files in logs (optional, can remove later) | |
| - name: List uploaded artifact files | |
| run: | | |
| echo "Files in artifact:" | |
| ls -R ./ # recursively list all files being uploaded | |
| # 5. Check MSI link in index.html | |
| - name: Check MSI link in index.html | |
| run: | | |
| grep "Graphical_2D_Frame_Analysis_CSharp.msi" index.html || echo "MSI link not found!" | |
| # 6. Deploy to GitHub Pages | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v1 |