Skip to content

Commit 5d49329

Browse files
authored
Merge branch 'master' into old-minutes
2 parents bfd0156 + d411ca4 commit 5d49329

File tree

3 files changed

+74
-16
lines changed

3 files changed

+74
-16
lines changed

.github/CODEOWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This is a comment.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# These owners will be the default owners for everything in
5+
# the repo. Unless a later match takes precedence,
6+
# @global-owner1 and @global-owner2 will be requested for
7+
# review when someone opens a pull request.
8+
* @HACManchester/board

.github/workflows/ci.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
name: ci
1+
name: Deploy Mkdocs to GitHub Pages
2+
23
on:
3-
push:
4-
branches:
5-
- master
4+
pull_request:
5+
66
jobs:
7-
deploy:
7+
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- name: Checkout
11+
uses: actions/checkout@v4
1112
with:
1213
fetch-depth: 0
13-
- uses: actions/setup-python@v2
14+
- name: Setup Pages
15+
uses: actions/configure-pages@v5
16+
- uses: actions/setup-python@v5
1417
with:
1518
python-version: 3.x
16-
- run: mkdir -p site
17-
- run: pip install mkdocs
18-
- run: pip install mkdocs-material
19-
- run: pip install mkdocs-video
20-
- run: pip install git+https://github.com/srymh/MkdocsTagPlugin.git@ac1f02ba95527d11d84b5ec87f4e63851d57fc7d
21-
- run: pip install git+https://github.com/rkoe/mkdocs-emailprotect@ef91e3dda367bd6a3f65dda183559e1b929d6240
22-
- run: pip install mkdocs-git-revision-date-localized-plugin
23-
- run: pip install mkdocs-awesome-nav
24-
- run: mkdocs gh-deploy --force
19+
- name: Install dependencies
20+
run: pip install -r requirements.txt
21+
- name: Make a folder to stop a stupid error
22+
run: mkdir -p _site
23+
- name: Build mkdocs
24+
run: mkdocs build --clean --verbose --site-dir _site
25+
- name: Upload artifact
26+
uses: actions/upload-pages-artifact@v3

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Mkdocs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- name: Setup Pages
26+
uses: actions/configure-pages@v5
27+
- uses: actions/setup-python@v5
28+
with:
29+
python-version: 3.x
30+
- name: Install dependencies
31+
run: pip install -r requirements.txt
32+
- name: Make a folder to stop a stupid error
33+
run: mkdir -p _site
34+
- name: Build mkdocs
35+
run: mkdocs build --clean --verbose --site-dir _site
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)