github: update for codex branch

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-07-14 11:17:38 +05:30
parent 1f110c0a67
commit c837b676ca
1 changed files with 2 additions and 19 deletions

View File

@ -3,12 +3,11 @@ name: Deploy
on:
push:
branches:
- src
- codex
jobs:
build-deploy:
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip deploy]')"
steps:
- uses: actions/checkout@master
@ -32,22 +31,6 @@ jobs:
SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION_STAGING }}
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:
runs-on: ubuntu-latest
needs: [build-deploy]
@ -55,7 +38,7 @@ jobs:
- name: Audit URL using Lighthouse
uses: docker://jakejarvis/lighthouse-action:latest
with:
url: 'https://msfjarvis.dev/'
url: 'https://staging.msfjarvis.dev/'
- name: Upload results as an artifact
uses: actions/upload-artifact@master
with: