Skip to content

Commit

Permalink
gh-action: refactoring code
Browse files Browse the repository at this point in the history
  • Loading branch information
danilapog authored Jul 5, 2024
1 parent 9fcc66a commit e654a99
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Publish

on:
workflow_dispatch:
push:

jobs:
publish:
Expand Down Expand Up @@ -35,9 +34,8 @@ jobs:
- name: Sync bucket
run: |
cd ./site/dist
#aws s3 sync . s3://api2static.teamlab.info --delete
aws s3 sync . s3://api2-test --delete
aws s3 sync . s3://api2static.teamlab.info --delete
#- name: Invalidate CLOUDFRONT cache
# run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }}
- name: Invalidate CLOUDFRONT cache
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }}

0 comments on commit e654a99

Please sign in to comment.