diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..7521451f --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -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