Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Update requirements.txt #246

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 100 additions & 98 deletions .github/workflows/on-pull-request.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,98 +1,100 @@
name: Build and Deploy to Github Pages
on:
# Runs both on pull requests and when a pull request is merged.
push:
branches: ["main"]
pull_request:
branches: ["*"]

jobs:
# This job builds the book. You can download the resulting build "artifact" by
# navigating to your actions manager in Github, selecting this run, and clicking
# "download artifact" on the "website" artifact.
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Build student web version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build web-student
project-root: "."
output-dir: "."

- name: Build student print version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build print-student
project-root: "."
output-dir: "."

- name: Build instructor web version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build web
project-root: "."
output-dir: "."

- name: Build instructor print version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build print-instructor
project-root: "."
output-dir: "."

- name: Build slides with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build slides
project-root: "."
output-dir: "."

- name: Stage with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: deploy --stage-only
project-root: "."
output-dir: "."

- name: Bundle output/stage as artifact
uses: actions/upload-artifact@v4
with:
name: website
path: output/stage

# This job deploys the artifact built in the previous job to Github pages.
deploy:
runs-on: ubuntu-latest
# only deploy to github pages if we have merged into main or master
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "page"
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download website artifact
uses: actions/download-artifact@v4
with:
name: website
path: website
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./website"
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4
name: Deploy to GitHub pages
on:
# Automatically deploy when a commit is pushed to
# the main (or otherwise configured) branch
push:
branches: ["main"]
# The below allows for manually deploying by running the action
# via GitHub.com
workflow_dispatch:

jobs:
# This job builds the book. You can download the resulting build "artifact" by
# navigating to your actions manager in Github, selecting this run, and clicking
# "download artifact" on the "website" artifact.
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Build student web version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build web-student
project-root: "."
output-dir: "."

- name: Build student print version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build print-student
project-root: "."
output-dir: "."

- name: Build instructor web version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build web
project-root: "."
output-dir: "."

- name: Build instructor print version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build print-instructor
project-root: "."
output-dir: "."

- name: Build slides with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build slides
project-root: "."
output-dir: "."

- name: Stage with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: deploy --stage-only
project-root: "."
output-dir: "."

- name: Bundle output/stage as artifact
uses: actions/upload-artifact@v4
with:
name: website
path: output/stage

# This job deploys the artifact built in the previous job to Github pages.
deploy:
runs-on: ubuntu-latest
# only deploy to github pages if we have merged into main or master
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "page"
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download website artifact
uses: actions/download-artifact@v4
with:
name: website
path: website
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./website"
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v4
64 changes: 64 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test Build
on:
# Runs on pull requests
pull_request:
branches: ["*"]

jobs:
# This job builds the book. You can download the resulting build "artifact" by
# navigating to your actions manager in Github, selecting this run, and clicking
# "download artifact" on the "website" artifact.
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Build student web version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build web-student
project-root: "."
output-dir: "."

- name: Build student print version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build print-student
project-root: "."
output-dir: "."

- name: Build instructor web version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build web
project-root: "."
output-dir: "."

- name: Build instructor print version with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build print-instructor
project-root: "."
output-dir: "."

- name: Build slides with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: build slides
project-root: "."
output-dir: "."

- name: Stage with PreTeXt
uses: siefkenj/pretext-build-action@main
with:
pretext-command: deploy --stage-only
project-root: "."
output-dir: "."

- name: Bundle output/stage as artifact
uses: actions/upload-artifact@v4
with:
name: website
path: output/stage
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pretext == 2.3.4
pretext == 2.4.1
checkit-dashboard == 0.2.6