Skip to content

Commit 6475405

Browse files
Merge pull request #204 from sourcebots/sp2023
WIP: Smallpeice 2023
2 parents 153afff + d01ff11 commit 6475405

File tree

133 files changed

+4910
-2445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+4910
-2445
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.md linguist-detectable=true

.github/workflows/ci.yml

Lines changed: 64 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,83 @@ name: CI
33
on:
44
push:
55
branches:
6-
- "*"
6+
- master
77
pull_request:
88

9+
# Allow running manually
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: true
20+
21+
defaults:
22+
run:
23+
shell: bash
24+
925
jobs:
10-
build:
26+
spellcheck:
1127
runs-on: ubuntu-latest
1228
steps:
29+
- name: Checkout sources
30+
uses: actions/checkout@v3
1331

14-
- uses: actions/checkout@v2
32+
- uses: actions/setup-node@v2
1533
with:
16-
submodules: true
34+
node-version: '16'
1735

18-
- name: Setup Hugo
19-
uses: peaceiris/actions-hugo@v2
36+
- name: Install
37+
run: npm install
38+
39+
- name: Spellcheck
40+
run: npm run spellcheck
41+
42+
build:
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- uses: actions/checkout@v3
2047
with:
21-
hugo-version: '0.87.0'
22-
extended: true
48+
submodules: recursive
2349

24-
- name: Setup node
25-
uses: actions/setup-node@v1
50+
- name: Set up Python
51+
uses: actions/setup-python@v4
2652
with:
27-
node-version: '14.x'
53+
python-version: '3.9'
54+
cache: 'pip'
55+
56+
- run: pip install -r requirements.txt
57+
58+
- name: Setup Pages
59+
uses: actions/configure-pages@v1
2860

29-
- uses: actions/cache@v1
61+
- name: Build
62+
run: |
63+
mkdocs build
64+
65+
- name: Upload artifact
66+
uses: actions/upload-pages-artifact@v1
3067
with:
31-
path: $HOME/.npm
32-
key: npm-${{ hashFiles('package-lock.json') }}
68+
path: ./site
69+
70+
deploy:
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
runs-on: ubuntu-latest
3375

34-
- name: Install Dependencies
35-
run: npm ci
76+
needs:
77+
- spellcheck
78+
- build
3679

37-
- name: Build site
38-
run: ./scripts/build.sh
80+
if: github.ref_name == 'master' || github.ref_name == 'sp2023'
3981

40-
- name: Run tests
41-
run: npm run ci-test
82+
steps:
83+
- name: Deploy to GitHub Pages
84+
id: deployment
85+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)