Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom committed Sep 5, 2024
1 parent 6804063 commit 4e0daa5
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/pr-diff-and-deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,20 @@ jobs:
fetch-depth: '0'
ref: ${{ github.head_ref }}

- name: Setup the environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
init-shell: bash
cache-environment: true
# - name: Setup the environment
# uses: mamba-org/setup-micromamba@v1
# with:
# environment-file: environment.yaml
# init-shell: bash
# cache-environment: true
# Build the PR version of the website
# YOUR_BUILD_CODE below should be replaced with code that builds your website
# - name: Build the PR version of the website
# - uses: conda-incubator/setup-miniconda@v3
# with:
# environment-file: environment.yaml
# activate-environment: viz-oer
# auto-activate-base: false


- name: Build the PR version of the website
run: quarto render textbook; ls -al textbook; tree
shell: bash -el {0} # Required to see the mamba init env
# - name: Build the PR version of the website
# run: quarto render textbook; ls -al textbook; tree
# shell: bash -el {0} # Required to see the mamba init env
- uses: quarto-dev/quarto-actions/setup@v2
- uses: quarto-dev/quarto-actions/render@v2
with:
Expand All @@ -70,14 +65,14 @@ jobs:
# Push the PR version of the website to the gh-pages branch
# the PR version will be stored in a folder named pull### (where ### is the PR number)
# WEBSITE_FOLDER below should be replaced with the folder in which the newly built website was stored
- run: tree
- name: Push the PR version of the website to gh-pages branch
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: textbook/_book
keep_files: true
destination_dir: pull${{ github.event.number }}
- run: ls -al
- run: tree

# Now that the website was built and pushed to gh-pages, checkout the gh-pages branch
Expand Down

0 comments on commit 4e0daa5

Please sign in to comment.