Skip to content

Adding docker image and page rendering #9

Adding docker image and page rendering

Adding docker image and page rendering #9

Workflow file for this run

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