Add note about portal accessibility in index.html #27
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 FTP | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'index.html' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Check if index.html changed | |
| id: check_changes | |
| run: | | |
| if git diff --name-only HEAD~1 HEAD | grep -q "^index\.html$"; then | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| echo "index.html has changed" | |
| else | |
| echo "changed=false" >> $GITHUB_OUTPUT | |
| echo "index.html has not changed" | |
| fi | |
| - name: Deploy via FTP | |
| if: steps.check_changes.outputs.changed == 'true' | |
| uses: SamKirkland/FTP-Deploy-Action@v4.3.4 | |
| with: | |
| server: spintheweb.org | |
| username: ${{ secrets.FTP_USERNAME }} | |
| password: ${{ secrets.FTP_PASSWORD }} | |
| local-dir: ./ | |
| server-dir: / | |
| include: | | |
| index.html | |
| exclude: | | |
| **/.git* | |
| **/.git*/** | |
| **/node_modules/** | |
| **/.github/** |