add Gustavo #88
This file contains 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: Render quarto website | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
render_site: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install GDebi first | |
run: sudo apt-get install gdebi-core | |
- name: Download the deb file | |
run: sudo curl -LO https://quarto.org/download/latest/quarto-linux-amd64.deb | |
- name: Install the deb file | |
run: sudo apt-get install -y ./quarto-linux-amd64.deb | |
- name: Verify Install | |
run: /usr/local/bin/quarto check | |
- name: Install quarto deps | |
run: pip install nbformat nbclient ipykernel jupyter tomli biopython scholarly crossrefapi toml pymongo orcid | |
- name: Install academicdb | |
run: pip install academicdb | |
- name: decrypt config file | |
run: ./decrypt_secret.sh | |
continue-on-error: true | |
env: | |
CONFIG_SECRET_PASSPHRASE: ${{ secrets.CONFIG_SECRET_PASSPHRASE }} | |
- name: decrypt pybliometrics config file | |
run: ./decrypt_pyb_config.sh | |
continue-on-error: true | |
env: | |
TOKEN_PASSCODE: ${{ secrets.TOKEN_PASSCODE }} | |
- name: Allow Python code to fail on forked PRs | |
run: | | |
if [ "$REPO_OWNER" != "poldracklab" ]; then | |
echo "POLDRACKLAB_IGNORE_FAILURE=1" | tee -a $GITHUB_ENV | |
fi | |
env: | |
REPO_OWNER: ${{ github.event.pull_request.head.repo.owner.login }} | |
- name: build site | |
run: quarto render . | |
- name: Deploy | |
if: github.event_name == 'push' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs # The folder the action should deploy. |