name: Publish site on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: setup hugo uses: peaceiris/actions-hugo@v2 - name: build run: hugo --minify - uses: bcomnes/deploy-to-neocities@v1 if: ${{ github.ref == 'refs/heads/main' }} with: api_token: ${{ secrets.NEOCITIES_API_KEY }} dist_dir: public