Skip to content

Commit

Permalink
Pull CI site generation from officer-template repo
Browse files Browse the repository at this point in the history
  • Loading branch information
randomnetcat committed Feb 10, 2025
1 parent 57292a0 commit b4a928c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit b4a928c

Please sign in to comment.