Skip to content

Commit 65a53b5

Browse files
authored
Adapt scripts to scala/dotty.epfl.ch not lampepfl/dotty-website (#21604)
Closes #21603
2 parents 9bf82f9 + 497768c commit 65a53b5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: .github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ jobs:
710710
git config --global --add safe.directory /__w/scala3/scala3
711711
./project/scripts/genDocs -doc-snapshot
712712
713-
- name: Deploy Website to dotty-website
713+
- name: Deploy Website to https://dotty.epfl.ch
714714
uses: peaceiris/actions-gh-pages@v4
715715
with:
716716
personal_token: ${{ secrets.DOTTYBOT_TOKEN }}

Diff for: project/scripts/genDocs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ shopt -s extglob # needed for rm everything but x
55
echo "Working directory: $PWD"
66

77
GENDOC_EXTRA_ARGS=$@
8-
GIT_HEAD=$(git rev-parse HEAD) # save current head for commit message in gh-pages
8+
GIT_HEAD=$(git rev-parse HEAD) # save current head for commit message in scala/dotty.epfl.ch
99
PREVIOUS_SNAPSHOTS_DIR="$PWD/../prev_snapshots"
1010
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)"
1111
SITE_OUT_DIR="$PWD/docs/_site"
@@ -16,9 +16,9 @@ if [ -d "$PREVIOUS_SNAPSHOTS_DIR" ]; then
1616
fi
1717

1818
mkdir -pv "$PREVIOUS_SNAPSHOTS_DIR"
19-
git remote add doc-remote "https://github.com/lampepfl/dotty-website.git"
20-
git fetch doc-remote gh-pages
21-
git checkout gh-pages
19+
git remote add doc-remote "https://github.com/scala/dotty.epfl.ch.git"
20+
git fetch doc-remote main
21+
git checkout doc-remote/main
2222
(cp -vr [03].*/ "$PREVIOUS_SNAPSHOTS_DIR"; true) # Don't fail if no `3.*` found to copy
2323
git checkout "$GIT_HEAD"
2424

0 commit comments

Comments
 (0)