Merge pull request #142 from EthicalML/feat/talks-events-filters #138
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 site | |
| on: | |
| push: | |
| branches: [master] | |
| schedule: | |
| # Daily rebuild so future-dated blog posts publish when due; off-peak minute. | |
| - cron: '43 5 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .tool-versions | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| env: | |
| FORM_ENDPOINT: ${{ secrets.FORM_ENDPOINT }} | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 | |
| indexnow: | |
| needs: deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Submit sitemap URLs to IndexNow | |
| run: | | |
| key=1c243c5ba8b5dda1cf01e6c1730e4e63 | |
| curl -sf https://ethical.institute/sitemap-0.xml \ | |
| | grep -o '<loc>[^<]*' | sed 's/<loc>//' \ | |
| | jq -R . | jq -s --arg key "$key" \ | |
| '{host: "ethical.institute", key: $key, keyLocation: ("https://ethical.institute/" + $key + ".txt"), urlList: .}' \ | |
| | curl -sS -X POST https://api.indexnow.org/indexnow \ | |
| -H 'Content-Type: application/json; charset=utf-8' \ | |
| --data-binary @- -o /dev/null -w 'IndexNow HTTP %{http_code}\n' |