Skip to content

Commit 8803552

Browse files
committed
[repo] Rename master to main with redirect
1 parent 38d2e45 commit 8803552

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/publish-apidocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Generate API docs and publish to Github Pages
22

33
env:
4-
BRANCHLIST: "MOODLE_39_STABLE MOODLE_311_STABLE MOODLE_400_STABLE MOODLE_401_STABLE MOODLE_402_STABLE MOODLE_403_STABLE master"
5-
VERSIONLIST: "3.9 3.11 4.00 4.1 4.2 4.3 master"
4+
BRANCHLIST: "MOODLE_39_STABLE MOODLE_311_STABLE MOODLE_400_STABLE MOODLE_401_STABLE MOODLE_402_STABLE MOODLE_403_STABLE main"
5+
VERSIONLIST: "3.9 3.11 4.00 4.1 4.2 4.3 main"
66

77
on:
88
schedule:
@@ -37,6 +37,11 @@ jobs:
3737
- name: Generate all API Documentation
3838
run: ./scripts/generate_api_docs.sh
3939

40+
- name: Copy Moodle Redirector
41+
run: |
42+
mkdir -p build/master
43+
cp redirect.html build/master/index.html
44+
4045
- name: Deploy
4146
uses: peaceiris/actions-gh-pages@v3
4247
with:

redirect.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>Redirecting to Documentation for main branch</title>
4+
<meta http-equiv="refresh" content="0; URL=../main/">
5+
<link rel="canonical" href="../main/">

0 commit comments

Comments
 (0)