This repository was archived by the owner on Mar 9, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "Build and checks" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
jobs: | ||
deploy-blog: | ||
name: Deploying the static pages to the FTP server | ||
runs-on: ubuntu-20.04 | ||
container: klakegg/hugo:ext-alpine | ||
defaults: | ||
run: | ||
working-directory: CodeIT | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'CodeIT' | ||
fetch-depth: 0 | ||
- name: Install HTML proofer | ||
run: apk update && apk add ruby-full && gem install html-proofer --no-document | ||
- name: Build static pages | ||
run: hugo --source=exampleSite -v --gc | ||
- name: Check the theme documentation | ||
run: htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external |