From c837b676ca5420a72afe840c7e8d5024dff90734 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 14 Jul 2020 11:17:38 +0530 Subject: [PATCH] github: update for codex branch Signed-off-by: Harsh Shandilya --- .github/workflows/deploy.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2e97272..c608d6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: