Skip to content

Commit

Permalink
feat: reverted to single job, moved aws env variables in s3-deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprototypes committed Sep 12, 2023
1 parent 2e6ae29 commit 8bb56f9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
jobs:
build:
run:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -14,19 +14,15 @@ jobs:
tool: zola@0.17.2
- name: Build
run: zola build
deploy:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: reggionick/s3-deploy@v4
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
folder: public
bucket: ${{ secrets.S3_BUCKET }}
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /
private: true
bucket-region: us-east-1
bucket-region: us-east-1

0 comments on commit 8bb56f9

Please sign in to comment.