Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Licari committed Jan 10, 2024
1 parent 290084b commit 65af536
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
branches:
- main
- dev
- release
tags:
- v*
# Launches build when release is published
release:
types: [published]
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
# Script to deploy to release environment
- name: 'Deploy to S3: Release'
working-directory: ./website
if: github.ref == 'refs/heads/release'
if: startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'release'
run: |
aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*.html" --exclude "sitemap.xml" --cache-control max-age=86400,public
aws s3 sync build/ s3://${{ secrets.RELEASE_BUCKET_NAME }} --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
Expand Down

0 comments on commit 65af536

Please sign in to comment.