Adding docker image and page rendering #9
Workflow file for this run
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 and Deploy | |
on: | |
pull_request: | |
branches: [master, main] | |
push: | |
branches: [master, main] | |
jobs: | |
build-html: | |
runs-on: ubuntu-22.04 | |
container: | |
image: gvegayon/appliedsnar:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Render | |
run: | | |
quarto render --to html | |
- name: Upload artifact | |
# uses: actions/upload-pages-artifact@v3 | |
uses: actions/upload-artifact@v3 | |
with: | |
path: _docs | |
name: gh-page-html | |
build-pdf: | |
runs-on: ubuntu-22.04 | |
container: | |
image: gvegayon/appliedsnar:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Render | |
run: | | |
quarto render --to pdf | |
- name: Upload artifact | |
# uses: actions/upload-pages-artifact@v3 | |
uses: actions/upload-artifact@v3 | |
with: | |
path: _docs | |
name: gh-page-pdf | |
combine: | |
runs-on: ubuntu-22.04 | |
needs: [build-html, build-pdf] | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: gh-page-html | |
path: _docs | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: gh-page-pdf | |
path: pdf | |
- name: Combine | |
run: | | |
cp -r pdf/* _docs | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
# uses: actions/upload-artifact@v3 | |
with: | |
path: _docs | |
deploy: | |
runs-on: ubuntu-22.04 | |
needs: combine | |
steps: | |
- uses: actions/deploy-pages@v3 |