customize action

This commit is contained in:
jverzani
2022-09-08 07:14:44 -04:00
parent ba14dd8548
commit 2dc90a7b17

View File

@@ -6,7 +6,7 @@ name: Quarto Publish to gh-pages
on: on:
# Triggers the workflow on push events but only for the "master" branch # Triggers the workflow on push events but only for the "master" branch
push: push:
branches: [ "master" ] branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
@@ -22,7 +22,7 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# setup Quarto # setup Quarto
- uses: quarto-dev/quarto-actions/setup@v2 - uses: quarto-dev/quarto-actions/setup@v2
@@ -31,14 +31,11 @@ jobs:
with: with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- run: pip install jupyter - run: pip install jupyter
# setup Julia # setup Julia
- uses: julia-actions/setup-julia@v1 - uses: julia-actions/setup-julia@v1
- run: julia --project -e 'using Pkg; Pkg.instantiate()' - run: julia --project -e 'using Pkg; Pkg.instantiate()'
# setup R
- uses: r-lib/actions/setup-r@v2
# render and push to the gh-pages branch # render and push to the gh-pages branch
- name: Publish to GitHub Pages (and render) - name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2 uses: quarto-dev/quarto-actions/publish@v2
@@ -47,4 +44,3 @@ jobs:
path: quarto path: quarto
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions