github: Remove GitHub pages deployment and run audits on prod
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
67867021f3
commit
5bf643593f
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue