build #21
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: build | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
push: | |
branches: | |
- master | |
- main | |
env: # Change this if needed | |
quarto_file: published-elmasri-optimal | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
computorticle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out repository for Github action | |
uses: actions/checkout@v2 | |
- name: Installing dependencies with Micromamba | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
cache-env: true | |
- name: Installing quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
tinytex: true | |
- name: Install Computo extension for Quarto | |
run: | | |
quarto add --no-prompt computorg/computo-quarto-extension | |
- name: Rendering with Quarto | |
shell: bash -l {0} | |
run: | | |
quarto render ${{ env.quarto_file }}.qmd | |
mkdir _build | |
mv ${{ env.quarto_file }}.html _build/index.html | |
mv -vf ${{ env.quarto_file }}_files figures ${{ env.quarto_file }}.pdf _build/ | |
cp environment.yml _build/ | |
touch _build/.nojekyll | |
- name: Deploying article on github pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
BRANCH: gh-pages | |
FOLDER: _build | |
CLEAN: true |