-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull CI site generation from officer-template repo
- Loading branch information
1 parent
57292a0
commit b4a928c
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,13 +106,32 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
submodules: "recursive" | ||
|
||
|
||
- name: Clean repo for officer template | ||
run: | | ||
mkdir -p generation | ||
rm -rf generation/gh-pages | ||
- name: Checkout officer-template for Github Pages | ||
uses: actions/[email protected] | ||
with: | ||
repository: "agoranomic/officer-template" | ||
ref: "gh-pages" | ||
path: "generation/gh-pages" | ||
|
||
- name: Fetch reports artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: reports | ||
path: artifacts/reports | ||
|
||
- name: Remove nested .git directory | ||
run: "rm -rf generation/gh-pages/.git" | ||
|
||
- name: Update Jekyll config | ||
run: | | ||
sed -i "s/^baseurl:.*$/baseurl: \/assessor/" generation/gh-pages/_config.yml | ||
- name: Copy reports to gh-pages dir | ||
run: "cp -R artifacts/reports/* generation/gh-pages" | ||
|
||
|