mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
github: update for codex branch
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
1f110c0a67
commit
c837b676ca
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
|
@ -3,12 +3,11 @@ name: Deploy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- src
|
- codex
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deploy:
|
build-deploy:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
if: "!contains(github.event.head_commit.message, '[skip deploy]')"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
@ -32,22 +31,6 @@ jobs:
|
||||||
SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION_STAGING }}
|
SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION_STAGING }}
|
||||||
SSH_PORT: ${{ secrets.SSH_PORT }}
|
SSH_PORT: ${{ secrets.SSH_PORT }}
|
||||||
|
|
||||||
- name: Build prod
|
|
||||||
if: "!contains(github.event.head_commit.message, '[skip prod]')"
|
|
||||||
run: |
|
|
||||||
rm -rf public/
|
|
||||||
hugo --minify
|
|
||||||
|
|
||||||
- name: Deploy to prod
|
|
||||||
if: "!contains(github.event.head_commit.message, '[skip prod]')"
|
|
||||||
run: source $GITHUB_WORKSPACE/ci/deploy.sh
|
|
||||||
env:
|
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
||||||
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
|
|
||||||
SERVER_ADDRESS: ${{ secrets.SERVER_ADDRESS }}
|
|
||||||
SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION_PROD }}
|
|
||||||
SSH_PORT: ${{ secrets.SSH_PORT }}
|
|
||||||
|
|
||||||
lighthouse:
|
lighthouse:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-deploy]
|
needs: [build-deploy]
|
||||||
|
@ -55,7 +38,7 @@ jobs:
|
||||||
- name: Audit URL using Lighthouse
|
- name: Audit URL using Lighthouse
|
||||||
uses: docker://jakejarvis/lighthouse-action:latest
|
uses: docker://jakejarvis/lighthouse-action:latest
|
||||||
with:
|
with:
|
||||||
url: 'https://msfjarvis.dev/'
|
url: 'https://staging.msfjarvis.dev/'
|
||||||
- name: Upload results as an artifact
|
- name: Upload results as an artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user