Update the survey pages for the published Preprints.org record (#17) #34
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 static site to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| 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: Configure GitHub Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload static site | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: . | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |
| # Tell IndexNow (Bing, Yandex, Seznam, Naver) that the site changed, so the | |
| # new pages get crawled in minutes instead of waiting for a discovery pass. | |
| # The key is public by design and must stay served at the keyLocation below. | |
| - name: Ping IndexNow | |
| continue-on-error: true | |
| env: | |
| INDEXNOW_KEY: 7c0adc110ed926fce21c24f8501c1239ca908db70bfd0d6ea30fd88cbf8e440b | |
| run: | | |
| curl -sS --fail-with-body -X POST https://api.indexnow.org/IndexNow \ | |
| -H 'Content-Type: application/json; charset=utf-8' \ | |
| -d "{ | |
| \"host\": \"simpleagentlab.com\", | |
| \"key\": \"${INDEXNOW_KEY}\", | |
| \"keyLocation\": \"https://simpleagentlab.com/${INDEXNOW_KEY}.txt\", | |
| \"urlList\": [ | |
| \"https://simpleagentlab.com/\", | |
| \"https://simpleagentlab.com/ai4ai/\", | |
| \"https://simpleagentlab.com/rsihub/\" | |
| ] | |
| }" |