Skip to content

Commit bae5597

Browse files
committed
Try to verify with google
1 parent ad18983 commit bae5597

21 files changed

+1082
-45
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
body:
2+
- type: checkboxes
3+
attributes:
4+
label: Checks
5+
options:
6+
- label: I have searched **[the docs](https://greene-lab.gitbook.io/lab-website-template-docs)**, [existing issues](https://github.com/greenelab/lab-website-template/issues), and [existing discussions](https://github.com/greenelab/lab-website-template/discussions) for answers first.
7+
required: true
8+
9+
- type: input
10+
id: repo
11+
attributes:
12+
label: Link to your website repo
13+
description: "In almost all cases, **we cannot help you if you don't provide this**."
14+
placeholder: ex. https://github.com/greenelab/greenelab.com
15+
validations:
16+
required: true
17+
18+
- type: input
19+
id: version
20+
attributes:
21+
label: Version of Lab Website Template you are using
22+
description: See your `CITATION.cff` file.
23+
placeholder: ex. 1.0.0
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: description
29+
attributes:
30+
label: Description
31+
description: |
32+
Describe your issue in as much detail as possible. For example: What happened? What did you expect to happen? How can we reproduce the problem? What browser are you seeing the problem in?
33+
placeholder: Description
34+
validations:
35+
required: true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
body:
2+
- type: checkboxes
3+
attributes:
4+
label: Checks
5+
options:
6+
- label: I have searched **[the docs](https://greene-lab.gitbook.io/lab-website-template-docs)**, [existing issues](https://github.com/greenelab/lab-website-template/issues), and [existing discussions](https://github.com/greenelab/lab-website-template/discussions) for answers first.
7+
required: true
8+
9+
- type: input
10+
id: repo
11+
attributes:
12+
label: Link to your website repo
13+
description: "In almost all cases, **we cannot help you if you don't provide this**."
14+
placeholder: ex. https://github.com/greenelab/greenelab.com
15+
validations:
16+
required: true
17+
18+
- type: input
19+
id: version
20+
attributes:
21+
label: Version of Lab Website Template you are using
22+
description: See your `CITATION.cff` file.
23+
placeholder: ex. 1.0.0
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: description
29+
attributes:
30+
label: Description
31+
description: |
32+
Describe your issue in as much detail as possible. For example: What happened? What did you expect to happen? How can we reproduce the problem? What browser are you seeing the problem in?
33+
placeholder: Description
34+
validations:
35+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 💬 Start a discussion
4+
url: https://github.com/greenelab/lab-website-template/discussions
5+
about: I need help, I have a question, or other discussion.
6+
- name: 📚 Docs issue
7+
url: https://github.com/greenelab/lab-website-template-docs/issues
8+
about: I have a question or issue related to the template documentation.

.github/ISSUE_TEMPLATE/issue.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🐞 Create an issue
2+
description: I think I've discovered a bug, I want to request a feature/change, or other issue.
3+
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Checks
8+
options:
9+
- label: I have searched **[the docs](https://greene-lab.gitbook.io/lab-website-template-docs)**, [existing issues](https://github.com/greenelab/lab-website-template/issues), and [existing discussions](https://github.com/greenelab/lab-website-template/discussions) for answers first.
10+
required: true
11+
12+
- type: input
13+
id: repo
14+
attributes:
15+
label: Link to your website repo
16+
description: "In almost all cases, **we cannot help you if you don't provide this**."
17+
placeholder: ex. https://github.com/greenelab/greenelab.com
18+
validations:
19+
required: true
20+
21+
- type: input
22+
id: version
23+
attributes:
24+
label: Version of Lab Website Template you are using
25+
description: See your `CITATION.cff` file.
26+
placeholder: ex. 1.0.0
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: description
32+
attributes:
33+
label: Description
34+
description: |
35+
Describe your issue in as much detail as possible. For example: What happened? What did you expect to happen? How can we reproduce the problem? What browser are you seeing the problem in?
36+
placeholder: Description
37+
validations:
38+
required: true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This website is based on the Lab Website Template.
2+
See its documentation for working with this site:
3+
4+
https://greene-lab.gitbook.io/lab-website-template-docs

.github/workflows/build-preview.yaml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222

2323
steps:
2424
- name: Debug dump
25+
if: runner.debug == '1'
2526
uses: crazy-max/ghaction-dump-context@v2
2627

2728
- name: Checkout branch contents
29+
if: github.event.action != 'closed'
2830
uses: actions/checkout@v4
2931
with:
3032
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -42,25 +44,40 @@ jobs:
4244
id: pages
4345
uses: actions/configure-pages@v4
4446

45-
- uses: jwalton/gh-find-current-pr@master
46-
if: github.event.action != 'closed'
47-
id: pr
48-
with:
49-
state: all
50-
5147
- name: SSH debug
5248
if: runner.debug == '1'
5349
uses: mxschmitt/action-tmate@v3
5450

5551
- name: Build preview version of site
5652
if: github.event.action != 'closed'
5753
run: |
58-
JEKYLL_ENV=production bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '' }}/${{ env.PREVIEWS_FOLDER }}/pr-${{ env.pr }}"
59-
env:
60-
pr: ${{ steps.pr.outputs.pr }}
54+
JEKYLL_ENV=production bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '' }}/${{ env.PREVIEWS_FOLDER }}/pr-${{ github.event.number }}"
6155
6256
- name: Commit preview to Pages branch
57+
if: github.event.action != 'closed'
6358
uses: rossjrw/[email protected]
6459
with:
6560
source-dir: _site
6661
umbrella-dir: ${{ env.PREVIEWS_FOLDER }}
62+
63+
- name: Checkout Pages branch
64+
uses: actions/checkout@v4
65+
with:
66+
ref: gh-pages
67+
68+
- name: Clean up preview folders
69+
uses: actions/github-script@v7
70+
with:
71+
script: |
72+
const { rm } = require("fs").promises;
73+
const { PREVIEWS_FOLDER } = process.env;
74+
const { owner, repo } = context.repo;
75+
const prs = (await github.rest.pulls.list({ owner, repo, state: "closed" })).data;
76+
for (const { number } of prs)
77+
await rm(`${PREVIEWS_FOLDER}/pr-${number}`, { recursive: true, force: true });
78+
79+
- name: Commit changed files
80+
uses: stefanzweifel/git-auto-commit-action@v5
81+
with:
82+
branch: gh-pages
83+
commit_message: "Clean up previews"

.github/workflows/build-site.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Debug dump
24+
if: runner.debug == '1'
2425
uses: crazy-max/ghaction-dump-context@v2
2526

2627
- name: Checkout branch contents

.github/workflows/first-time-setup.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Debug dump
17+
if: runner.debug == '1'
1718
uses: crazy-max/ghaction-dump-context@v2
1819

1920
- name: Create Pages branch
@@ -34,7 +35,7 @@ jobs:
3435

3536
# clean slate, as if starting from orphan branch
3637
- name: Clear Pages branch
37-
run: rm -rf * .github .docker .gitignore
38+
run: rm -rf ./* .github .docker .gitignore
3839

3940
# prevent GitHub from running Jekyll a second time after build
4041
- name: Make .nojekyll file
@@ -70,8 +71,8 @@ jobs:
7071
run: |
7172
user="${{ github.repository_owner }}"
7273
description="An engaging 1-3 sentence description of your lab."
73-
printf "\nUSER=${user}" >> $GITHUB_ENV
74-
printf "\nDESCRIPTION=${description}" >> $GITHUB_ENV
74+
printf "\nUSER=%s" "$user" >> "$GITHUB_ENV"
75+
printf "\nDESCRIPTION=%s" "$description" >> "$GITHUB_ENV"
7576
7677
- name: Personalize readme for user
7778
run: |
@@ -80,12 +81,12 @@ jobs:
8081
![on-pull-request](../../actions/workflows/on-pull-request.yaml/badge.svg)
8182
![on-schedule](../../actions/workflows/on-schedule.yaml/badge.svg)
8283
83-
# ${{ env.USER }}'s Website
84+
# %s's Website
8485
8586
Visit **[website url](#)** 🚀
8687
8788
_Built with [Lab Website Template](https://greene-lab.gitbook.io/lab-website-template-docs)_
88-
" > README.md
89+
" "${{ env.USER }}" > README.md
8990
9091
- name: Personalize Jekyll config for user
9192
uses: actions/github-script@v7
@@ -119,4 +120,4 @@ jobs:
119120
- name: Commit changed files
120121
uses: stefanzweifel/git-auto-commit-action@v5
121122
with:
122-
commit_message: "Setup repo"
123+
commit_message: "Set up repo"

.github/workflows/update-citations.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Debug dump
32+
if: runner.debug == '1'
3233
uses: crazy-max/ghaction-dump-context@v2
3334

3435
- name: Checkout branch contents
@@ -38,7 +39,7 @@ jobs:
3839
repository: ${{ github.event.pull_request.head.repo.full_name }}
3940
ref: ${{ github.head_ref }}
4041

41-
- name: Setup Python
42+
- name: Set up Python
4243
if: github.event.action != 'closed'
4344
uses: actions/setup-python@v5
4445
with:

.github/workflows/update-url.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Debug dump
23+
if: runner.debug == '1'
2324
uses: crazy-max/ghaction-dump-context@v2
2425

2526
- name: Get Pages url

0 commit comments

Comments
 (0)