Skip to content

Commit 6675297

Browse files
committed
GitHub Pages deployment hack
My god; a `sed` to edit html paths. Horrible ...
1 parent d7bfd90 commit 6675297

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/deploy_github_pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
- name: Organise `build` Folder
2626
id: organise
2727
run: |
28-
mkdir -p build/api/v1/
29-
cp api/v1/language_reference.json build/api/v1/language_reference.json
28+
mkdir -p build/
29+
cp api/v1/language_reference.json build/language_reference.json
3030
cp static/langauge_reference.html build/index.html
31+
sed -i '' 's/\/api\/v1\/language_reference/language_reference/' build/index.html
3132
3233
- name: Upload static files as artifact
3334
id: deployment

0 commit comments

Comments
 (0)