From 25411fbb559662e3b255647536af6ef38516463a Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 6 Sep 2020 22:46:15 -0700 Subject: [PATCH] gh workflow correction --- .github/workflows/build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04abf7c..3a18da7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,12 +20,15 @@ jobs: hugo-version: '0.74.2' extended: true + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: Hugo Build run: hugo --minify - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public - cname: www.softinio.com + - name: Deploy to S3 + run: hugo deploy --maxDeletes -1 --invalidateCDN \ No newline at end of file