Deploy #716
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 | |
| on: | |
| schedule: | |
| # Run at 6:00 every day | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: deploy-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: pip | |
| - name: Install project | |
| run: pip install . | |
| - name: Persist requests-cache's cache file | |
| uses: actions/cache@v5 | |
| with: | |
| key: http_cache-${{ github.run_id }} | |
| path: http_cache.sqlite | |
| restore-keys: | | |
| http_cache- | |
| - name: Run rfparser | |
| run: | | |
| mkdir outdir | |
| rfparser -v --xml outdir/pubs_for_website.xml | |
| env: | |
| RF_USERNAME: ${{ secrets.RF_USERNAME }} | |
| RF_PASSWORD: ${{ secrets.RF_PASSWORD }} | |
| RFPARSER_EMAIL: ${{ secrets.RFPARSER_EMAIL }} | |
| NBIROS_PUB_EXPORT_XML_URL: ${{ secrets.NBIROS_PUB_EXPORT_XML_URL }} | |
| PEOPLE_DATA_CSV_URL: ${{ secrets.PEOPLE_DATA_CSV_URL }} | |
| ORCID_ACCESS_TOKEN: ${{ secrets.ORCID_ACCESS_TOKEN }} | |
| - name: Upload to 'artifacts' branch | |
| uses: s0/git-publish-subdir-action@develop | |
| env: | |
| BRANCH: artifacts | |
| FOLDER: outdir | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| REPO: self | |
| SKIP_EMPTY_COMMITS: true | |
| TARGET_DIR: . |