Update GitHub CI to build docs and lint
Signed-off-by: Jonathon Anderson <janderson@ciq.co>
This commit is contained in:
11
.github/workflows/documentation.yml
vendored
11
.github/workflows/documentation.yml
vendored
@@ -3,6 +3,15 @@ name: publish_docs
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- development
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- development
|
||||||
|
paths:
|
||||||
|
- userdocs/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
@@ -34,6 +43,7 @@ jobs:
|
|||||||
make html
|
make html
|
||||||
|
|
||||||
- name: Install SSH key
|
- name: Install SSH key
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
env:
|
env:
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
run: |
|
run: |
|
||||||
@@ -50,6 +60,7 @@ jobs:
|
|||||||
git config --global user.name "gh-actions"
|
git config --global user.name "gh-actions"
|
||||||
|
|
||||||
- name: Update website repo
|
- name: Update website repo
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
git clone git@github.com:hpcng/warewulf-web.git ~/warewulf-web
|
git clone git@github.com:hpcng/warewulf-web.git ~/warewulf-web
|
||||||
mkdir -p ~/warewulf-web/static/docs
|
mkdir -p ~/warewulf-web/static/docs
|
||||||
|
|||||||
6
.github/workflows/lint.yaml
vendored
6
.github/workflows/lint.yaml
vendored
@@ -2,7 +2,13 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- development
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- development
|
||||||
|
paths-ignore:
|
||||||
|
- 'docs/**'
|
||||||
|
|
||||||
name: golangci-lint
|
name: golangci-lint
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user