Skip to content

Commit

Permalink
dev deployment added
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Potekhin committed Oct 3, 2024
1 parent 8bccba2 commit c3d076c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/s3-deploy-development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy docs to S3 development
on:
push:
branches:
- develop
jobs:
run:
runs-on: ubuntu-latest
environment: development
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: yarn

- name: Build
run: yarn build

- name: Deploy
uses: reggionick/s3-deploy@v4
with:
folder: build
bucket: ${{ secrets.S3_BUCKET }}
bucket-region: ${{ secrets.S3_BUCKET_REGION }}
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /*
delete-removed: true
# no-cache: true
private: true
# files-to-include: '{.*/**,**}'
2 changes: 1 addition & 1 deletion .github/workflows/s3-deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy docs to S3
name: Deploy docs to S3 production
on:
push:
branches:
Expand Down

0 comments on commit c3d076c

Please sign in to comment.