Add files via upload #32
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
| on: | |
| push: | |
| branches: | |
| - main # Only trigger on changes to the 'main' branch | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy to Neocities | |
| steps: | |
| # Checkout the repository | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # Deploy to Neocities | |
| - name: Deploy to Neocities | |
| uses: bcomnes/deploy-to-neocities@v3 | |
| with: | |
| api_key: ${{ secrets.NEOCITIES_API_TOKEN }} # Use secret for Neocities API key | |
| cleanup: true # Set to true to remove orphaned files on Neocities | |
| neocities_supporter: false # Set to true if you have a supporter account | |
| preview_before_deploy: true # Optional: preview the deployment plan before applying | |
| dist_dir: '.' # Deploy everything from the root directory |