Skip to content

Commit

Permalink
tweaking action
Browse files Browse the repository at this point in the history
  • Loading branch information
MattReimer committed Mar 13, 2023
1 parent 0b13f29 commit d0116b6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/docs_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ name: Deploy to bucket on S3

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
on:
push:
branches: [ master ]
branches:
- master
workflow_dispatch:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -35,9 +43,9 @@ jobs:
with:
args: --acl public-read --follow-symlinks --delete
env:
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 }}
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}}
AWS_REGION: 'us-west-2' # optional: defaults to us-east-1
SOURCE_DIR: 'PUBLIC' # optional: defaults to entire repository

Expand Down

0 comments on commit d0116b6

Please sign in to comment.