-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (52 loc) · 1.7 KB
/
ci.yml
File metadata and controls
60 lines (52 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Continuous Integration
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
runLint:
description: 'Run the static linter'
required: false
default: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
with:
submodules: "true"
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v6.0.0
with:
python-version: "3.10"
- name: Login to GitHub Container Registry
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 #v3.5.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build in the dev container image
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 #v0.3.1900000417
with:
imageName: ghcr.io/gradleup/gradleup.github.io-builder
cacheFrom: ghcr.io/gradleup/gradleup.github.io-builder
push: never
runCmd: |
mkdocs build
env: |
FULL_BUILD=true
- name: Lint the static site
uses: anishathalye/proof-html@acec311c40ea13c9ffa6490e77ac67f52594f403 #v2.2.2
if: ${{ inputs.runLint }}
with:
directory: ./_site
enforce_https: false
tokens: |
{"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
ignore_url: |
https://fonts.gstatic.com