-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix-adjust-trigger-padding
- Loading branch information
Showing
7 changed files
with
146 additions
and
176 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
name: "Publish preview.closeread.dev" | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# for accessing this repo's assets in the container | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
# run the container, attaching this repo as a working directory | ||
- name: Run the build process with Docker | ||
uses: addnab/docker-run-action@v3 | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
with: | ||
image: stat20/stat20-docker:latest | ||
options: -v ${{ github.workspace }}:/home/rstudio/closeread -e NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
shell: bash | ||
run: | | ||
# exit if any command returns non-zero exit | ||
set -e | ||
cd /home/rstudio/closeread/ | ||
# render and publish site | ||
quarto publish netlify docs --id ba6ca24d-1c6b-44b3-b907-16a2bfe5f4b5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,30 @@ | ||
# workflow to build docs site and publish to github pages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: main | ||
|
||
name: closeread-publish | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
branches: | ||
- main | ||
|
||
name: "Publish closeread.dev" | ||
jobs: | ||
build-docs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ucbscf/berkeley-stat-course:latest | ||
options: --user root | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout closeread repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check Quarto version | ||
run: quarto check | ||
# for accessing this repo's assets in the container | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
# run the container, attaching this repo as a working directory | ||
- name: Run the build process with Docker | ||
uses: addnab/docker-run-action@v3 | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
with: | ||
image: stat20/stat20-docker:latest | ||
options: -v ${{ github.workspace }}:/home/rstudio/closeread -e NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
shell: bash | ||
run: | | ||
# exit if any command returns non-zero exit | ||
set -e | ||
- name: Render docs site | ||
run: | | ||
# copy closeread extension into docs | ||
cd docs | ||
mkdir -p _extensions/ | ||
cp -Rf ../_extensions/closeread _extensions/ | ||
quarto render | ||
shell: bash | ||
cd /home/rstudio/closeread/ | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload docs/ artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: "./docs/_site" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
||
# render and publish site | ||
quarto publish netlify docs --id 2a052dac-9a3d-43c1-9f3d-e37e3cb55af2 |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
File renamed without changes.