Skip to content

Commit

Permalink
Merge pull request #10 from manics/main
Browse files Browse the repository at this point in the history
Automatically copy UK TRE code of conduct when website is built
  • Loading branch information
manics authored Apr 2, 2024
2 parents 9240801 + d02be04 commit 4abb5d0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
- name: Install Node.js dependencies
run: npm ci

- name: Copy UK TRE code of conduct
run: |
cp content/about/code_of_conduct.template content/about/code_of_conduct.md
curl -sfSL \
https://raw.githubusercontent.com/uk-tre/.github/main/CODE_OF_CONDUCT.md >> \
content/about/code_of_conduct.md
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
public
node_modules
resources
.hugo_build.lock
.hugo_build.lock

content/about/code_of_conduct.md
1 change: 1 addition & 0 deletions config/_default/menus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ footer:
weight: 90

- name: Code of conduct
pageref: /about/code_of_conduct
weight: 90


Expand Down
9 changes: 9 additions & 0 deletions content/about/code_of_conduct.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Code of Conduct"
description: "The UK TRE code of conduct"
---

<!--
This is a placeholder for the UK TRE Code of Conduct.
It will be automatically copied from https://github.com/uk-tre/.github/blob/main/CODE_OF_CONDUCT.md when the website is built on GitHub Pages.
-->

0 comments on commit 4abb5d0

Please sign in to comment.