Skip to content

Commit 46594b3

Browse files
committed
Clean up the workflow files and index.html file.
Note that the link to webwork2 POD is removed. That is not PG pod and is not related to problem authoring. It doesn't belong here.
1 parent fa13e85 commit 46594b3

File tree

4 files changed

+188
-194
lines changed

4 files changed

+188
-194
lines changed

.github/workflows/produce_pod.yml

Lines changed: 50 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,60 @@
1-
# This workflow checks out the webwork2 and pg code, then runs the
2-
# generate-ww-pg-pod.pl script and commits the results.
1+
# This workflow checks out the webwork2 and pg code, runs the
2+
# generate-ww-pg-pod.pl script, and commits the results.
33

44
name: Build POD pages
55

6-
# Controls when the workflow will run
76
on:
8-
# Allows you to run this workflow manually from the Actions tab
9-
workflow_dispatch:
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
109

11-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1210
jobs:
13-
create-pod:
14-
# The type of runner that the job will run on
15-
runs-on: ubuntu-24.04
11+
create-pod:
12+
runs-on: ubuntu-24.04
1613

17-
# Steps represent a sequence of tasks that will be executed as part of the job
18-
steps:
19-
- name: Install Ubuntu dependencies
20-
run: |
21-
sudo apt-get update
22-
sudo apt-get install -y --no-install-recommends --no-install-suggests \
23-
libpod-parser-perl libmojolicious-perl
24-
- name: Checkout pg-docs code
25-
uses: actions/checkout@v4
26-
with:
27-
persist-credentials: false
28-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29-
- name: Checkout PG code
30-
uses: actions/checkout@v4
31-
with:
32-
repository: openwebwork/pg
33-
ref: PG-2.20
34-
path: pg
35-
persist-credentials: false
14+
steps:
15+
- name: Install Ubuntu dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y --no-install-recommends --no-install-suggests \
19+
libpod-parser-perl libmojolicious-perl
3620
37-
- name: Checkout WW code
38-
uses: actions/checkout@v4
39-
with:
40-
repository: openwebwork/webwork2
41-
ref: WeBWorK-2.20
42-
path: webwork2
43-
persist-credentials: false
21+
- name: Checkout pg-docs code
22+
uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
4425

45-
# Run the generate pod script
46-
- name: create POD
47-
run: |
48-
ls -l webwork2
49-
ls -l /home/runner/work/pg-docs/pg-docs/webwork2
50-
ls -l pg
51-
perl webwork2/bin/dev_scripts/generate-ww-pg-pod.pl -v \
52-
--webwork-root=/home/runner/work/pg-docs/pg-docs/webwork2 \
53-
--pg-root=/home/runner/work/pg-docs/pg-docs/pg \
54-
--output-dir=pod \
55-
--base-url=https://openwebwork.github.io/pg-docs/pod/
56-
- name: remove pg and webwork code
57-
run: |
58-
rm -rf pg
59-
rm -rf webwork2
60-
ls -l
61-
git status
62-
- name: Commit and push changes
63-
uses: devops-infra/action-commit-push@master
64-
with:
65-
github_token: ${{ secrets.GITHUB_TOKEN }}
66-
commit_message: Updated POD
67-
force: true
26+
- name: Checkout PG code
27+
uses: actions/checkout@v4
28+
with:
29+
repository: openwebwork/pg
30+
ref: main
31+
path: pg
32+
persist-credentials: false
6833

34+
- name: Checkout WW code
35+
uses: actions/checkout@v4
36+
with:
37+
repository: openwebwork/webwork2
38+
ref: main
39+
path: webwork2
40+
persist-credentials: false
41+
42+
# Run the generate pod script
43+
- name: Create POD
44+
run: |
45+
perl webwork2/bin/dev_scripts/generate-ww-pg-pod.pl \
46+
--pg-root=/home/runner/work/pg-docs/pg-docs/pg \
47+
--output-dir=pod \
48+
--base-url=https://openwebwork.github.io/pg-docs/pod/
49+
50+
- name: Remove pg and webwork code
51+
run: |
52+
rm -rf pg
53+
rm -rf webwork2
54+
55+
- name: Commit and push changes
56+
uses: devops-infra/action-commit-push@master
57+
with:
58+
github_token: ${{ secrets.GITHUB_TOKEN }}
59+
commit_message: Updated POD
60+
force: true

.github/workflows/sample_problem_docs.yml

Lines changed: 45 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,52 @@
33

44
name: Create Sample Problems Docs
55

6-
# Controls when the workflow will run
76
on:
8-
# Allows you to run this workflow manually from the Actions tab
9-
workflow_dispatch:
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
109

11-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1210
jobs:
13-
create-sample-problems:
14-
# The type of runner that the job will run on
15-
runs-on: ubuntu-24.04
16-
17-
# Steps represent a sequence of tasks that will be executed as part of the job
18-
steps:
19-
- name: Install Ubuntu dependencies
20-
run: |
21-
sudo apt-get update
22-
sudo apt-get install -y --no-install-recommends --no-install-suggests \
23-
cpanminus \
24-
pandoc \
25-
libmojolicious-perl \
26-
libyaml-libyaml-perl \
27-
libpandoc-wrapper-perl
28-
- name: Checkout pg-docs code
29-
uses: actions/checkout@v4
30-
with:
31-
persist-credentials: false
32-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
33-
- name: Checkout PG code
34-
uses: actions/checkout@v4
35-
with:
36-
repository: openwebwork/pg
37-
ref: PG-2.20
38-
path: pg
39-
persist-credentials: false
40-
41-
# Runs a set of commands using the runners shell
42-
- name: parse sample problems
43-
run: |
44-
perl pg/bin/parse-problem-doc.pl \
45-
--problem_dir=/home/runner/work/pg-docs/pg-docs/pg/doc/sample-problems \
46-
--out_dir=/home/runner/work/pg-docs/pg-docs/sample-problems \
47-
--pod_root=https://openwebwork.github.io/pg-docs/pod \
48-
--pg_doc_home=https://openwebwork.github.io/pg-docs/sample-problems
49-
- name: remove pg code
50-
run: |
51-
rm -rf pg
52-
ls -l
53-
git status
54-
- name: Commit and push changes
55-
uses: devops-infra/action-commit-push@master
56-
with:
57-
github_token: ${{ secrets.GITHUB_TOKEN }}
58-
commit_message: Updated sample problem docs
59-
force: true
11+
create-sample-problems:
12+
runs-on: ubuntu-24.04
6013

14+
steps:
15+
- name: Install Ubuntu dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y --no-install-recommends --no-install-suggests \
19+
cpanminus \
20+
pandoc \
21+
libmojolicious-perl \
22+
libyaml-libyaml-perl \
23+
libpandoc-wrapper-perl
24+
25+
- name: Checkout pg-docs code
26+
uses: actions/checkout@v4
27+
with:
28+
persist-credentials: false
29+
30+
- name: Checkout PG code
31+
uses: actions/checkout@v4
32+
with:
33+
repository: openwebwork/pg
34+
ref: main
35+
path: pg
36+
persist-credentials: false
37+
38+
- name: Parse sample problems
39+
run: |
40+
perl pg/bin/parse-problem-doc.pl \
41+
--problem_dir=/home/runner/work/pg-docs/pg-docs/pg/doc/sample-problems \
42+
--out_dir=/home/runner/work/pg-docs/pg-docs/sample-problems \
43+
--pod_root=https://openwebwork.github.io/pg-docs/pod \
44+
--pg_doc_home=https://openwebwork.github.io/pg-docs/sample-problems
45+
46+
- name: Remove pg code
47+
run: rm -rf pg
48+
49+
- name: Commit and push changes
50+
uses: devops-infra/action-commit-push@master
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
commit_message: Updated sample problem docs
54+
force: true

.github/workflows/static.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
# Simple workflow for deploying static content to GitHub Pages
2+
23
name: Deploy static content to Pages
34

45
on:
5-
# Runs on pushes targeting the default branch
6-
# push:
7-
# branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
118

129
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1310
permissions:
14-
contents: read
15-
pages: write
16-
id-token: write
11+
contents: read
12+
pages: write
13+
id-token: write
1714

1815
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1916
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2017
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
18+
group: 'pages'
19+
cancel-in-progress: false
2320

2421
jobs:
25-
# Single deploy job since we're just deploying
26-
deploy:
27-
environment:
28-
name: github-pages
29-
url: ${{ steps.deployment.outputs.page_url }}
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v4
34-
- name: Setup Pages
35-
uses: actions/configure-pages@v3
36-
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v3
38-
with:
39-
# Upload entire repository
40-
path: '.'
41-
- name: Deploy to GitHub Pages
42-
id: deployment
43-
uses: actions/deploy-pages@v4
22+
# Single deploy job since we're just deploying
23+
deploy:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v3
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
# Upload entire repository
41+
path: '.'
42+
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)