Skip to content

Commit 1b3b3c3

Browse files
committed
Redirect REG website using GitHub Actions
1 parent 99ef2a6 commit 1b3b3c3

File tree

77 files changed

+48
-924
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+48
-924
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build redirects
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repo
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.12
19+
20+
- name: Generate redirect files
21+
run: |-
22+
python generate_redirects.py
23+
24+
- name: Deploy
25+
uses: JamesIves/github-pages-deploy-action@v4
26+
with:
27+
folder: docs # The folder the action should deploy.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/docs/

.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Redirect to new REG website
2+
3+
The REG website has moved to: <https://bristol-reg.github.io>
4+
5+
This repo generates redirects to the new website.
6+
7+
## Editing the redirects
8+
9+
1. Edit `redirects.csv`, adding each redirect as a new row in the format: `/old_url,https://new_site/new_url`
10+
2. Push the `main` brnach to GitHub
11+
3. A GitHub Action will regenerate the redirect pages for you
12+
13+
You can also preview the redirect pages locally, by running `python generate_redirects.py` which will generate a directory `docs/`.

docs/ask-jgi-handbook/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/ask-jgi-handbook/pages/intro.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/ask-jgi-handbook/pages/managers/access.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/ask-jgi-handbook/pages/managers/contracts.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/ask-jgi-handbook/pages/managers/new-shifters.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/ask-jgi-handbook/pages/managers/recruitment.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)