github: Remove GitHub pages deployment and run audits on prod

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-11-06 11:06:07 +05:30
parent 67867021f3
commit 5bf643593f
1 changed files with 11 additions and 21 deletions

View File

@ -17,27 +17,6 @@ jobs:
hugo-version: '0.59.1'
extended: true
- name: Build GitHub Pages
run: hugo --minify -DEFb=https://msfjarvis.github.io/msfjarvis.website
- name: Deploy to GitHub pages
uses: docker://peaceiris/gh-pages:latest
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
- name: Audit live URL
uses: docker://jakejarvis/lighthouse-action:latest
with:
url: 'https://msfjarvis.github.io/msfjarvis.website/'
- name: Upload results as an artifact
uses: actions/upload-artifact@master
with:
name: report
path: './report'
- name: Build staging
run: hugo --minify -DEFb=https://staging.msfjarvis.website
@ -68,3 +47,14 @@ jobs:
env:
CF_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
CF_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
- name: Audit live URL
uses: docker://jakejarvis/lighthouse-action:latest
with:
url: 'https://msfjarvis.website/'
- name: Upload results as an artifact
uses: actions/upload-artifact@master
with:
name: report
path: './report'