Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrew authored Nov 12, 2024
1 parent 5062f31 commit 595d2bf
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ on:
types:
- completed


env:
production_bucket: docs.threatx.com
staging_bucket: docs-staging.threatx.com
region: us-east-1

jobs:

stage:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -29,10 +34,10 @@ jobs:
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: docs-staging.threatx.com
AWS_S3_BUCKET: ${{ env.staging_bucket }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
AWS_REGION: ${{ env.region }}
SOURCE_DIR: 'public'

release:
Expand All @@ -53,8 +58,8 @@ jobs:
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: docs.threatx.com
AWS_S3_BUCKET: ${{ env.production_bucket }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
AWS_REGION: ${{ env.region }}
SOURCE_DIR: 'public'

0 comments on commit 595d2bf

Please sign in to comment.