change user button #37
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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Install rsync | |
| run: sudo apt-get update && sudo apt-get install -y rsync | |
| - name: Create artifact directory | |
| run: | | |
| mkdir -p artifact/data artifact/dist | |
| # Use rsync to copy files, excluding symlinks and preserving regular files | |
| rsync -av --no-links data/ artifact/data/ | |
| rsync -av --no-links dist/ artifact/dist/ | |
| cp *.html *.css artifact/ | |
| - name: Verify artifact contents | |
| run: | | |
| ls -l artifact/ | |
| ls -l artifact/data/ | |
| ls -l artifact/dist/ | |
| - name: Check for symlinks in artifact | |
| run: | | |
| find artifact/ -type l || echo "No symlinks found in artifact" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: github-pages | |
| path: artifact/ | |
| retention-days: 1 | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |