Skip to content

Commit

Permalink
publish investigations to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumayaMauthoorMOJ committed Jul 22, 2024
1 parent 6cc7eae commit 23b4832
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,33 @@ jobs:
- name: Download moj theme
run: wget https://raw.githubusercontent.com/ministryofjustice/marp-moj-theme/main/themes/moj.css

- name: Get changed mission statement
id: changed-mission-statement
uses: tj-actions/changed-files@v44
with:
files: mission_statement/README.md

- name: Marp Build (README)
# if: steps.changed-mission-statement.outputs.any_changed == 'true'
- name: Marp Build (Mission statement)
run: |
npx @marp-team/marp-cli@latest slide-deck.md mission_statement/README.md \
npx @marp-team/marp-cli@latest mission_statement/README.md \
-o build/index.html --theme moj.css --html
- name: Create directories (Investigations)
run: |
for directory in investigations/*/ ; do
mkdir -p build/$(basename $directory)
done
- name: Copy Images directory (Investigations)
run: |
for directory in investigations/*/ ; do
if [[ -d $directory/images ]];
then
cp -R $directory/images build/$(basename $directory)/images;
echo "copied $directory/images"
fi
done
- name: Marp Build (Investigations)
run: |
for directory in investigations/*/ ; do
npx @marp-team/marp-cli@latest $directory/README.md \
-o build/$(basename $directory)/index.html --theme moj.css --html
done
- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Centre for Excellence

This repo is used to define Centre for Excellence' mission statement.
The Centre for Excellence sets the technical direction for Data and Analytics Engineering. See the [mission statement](https://moj-analytical-services.github.io/dmet-cfe/) for how we do this.

It also documents various investigations completed by the Centre for Excellence.
## Investigations

Summarises investigations into new technologies, tools and approaches. Slides are created using Markdown and [Marp](https://marp.app/) and published to https://moj-analytical-services.github.io/dmet-cfe/<investigation_name> using a GitHub action

0 comments on commit 23b4832

Please sign in to comment.