From f9ddca132d529f49d3dcc61127a4ba1580b61a42 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Mon, 26 Aug 2019 10:57:00 -0400 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 26a66147..04f1ca49 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,8 +10,30 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: jakejarvis/hugo-build-action@master + - uses: jakejarvis/hugo-build-action@0.53 - uses: actions/upload-artifact@master with: name: public path: './public' + - uses: jakejarvis/s3-sync-action@master + env: + SOURCE_DIR: './public' + AWS_REGION: 'us-east-1' + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + - uses: jakejarvis/cloudflare-purge-action@master + env: + CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} + CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }} + CLOUDFLARE_KEY: ${{ secrets.CLOUDFLARE_KEY }} + - uses: jakejarvis/wait-action@master + with: + time: '30s' + - uses: jakejarvis/lighthouse-action@master + with: + url: 'https://jarv.is/' + - uses: actions/upload-artifact@master + with: + name: report + path: './report'