-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (36 loc) · 1.18 KB
/
pages.yml
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
# SPDX-FileCopyrightText: 2023 Siemens AG
#
# SPDX-License-Identifier: Apache-2.0
#
# Author: Michael Adler <[email protected]>
---
name: Pages
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
pages:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
container: golang:1.23.1@sha256:4f063a24d429510e512cc730c3330292ff49f3ade3ae79bda8f84a24fa25ecb0
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Disable git security features
run: git config --global safe.directory '*'
- run: .ci/setup-pages.sh
# check for broken links
- run: just check-md-links
- run: cd hugo && npm ci
- run: just pages
env:
HUGO_BASEURL: ${{ vars.HUGO_BASEURL }}
- run: find public
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public