Skip to content

Commit

Permalink
ci(deploy): Use manual condition again, so it catches workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jul 31, 2022
1 parent 1800a34 commit 5777f9b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,22 @@ jobs:
run: |
env GITHUB_API_TOKEN=${{ secrets.CI_GITHUB_API_TOKEN }} yarn workspace @tony/cv-scripts run github
- name: react
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.react == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.react == 'true' || steps.changes.outputs.common == 'true')
run: |
cd packages/react
yarn build
- name: vue
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.vue == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.vue == 'true' || steps.changes.outputs.common == 'true')
run: |
cd packages/vue
yarn build
- name: angular
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.angular == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.angular == 'true' || steps.changes.outputs.common == 'true')
run: |
cd packages/angular
yarn build --prod --source-map
- name: push to s3 (react)
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.react == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.react == 'true' || steps.changes.outputs.common == 'true')
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
Expand All @@ -115,7 +115,7 @@ jobs:
SOURCE_DIR: 'packages/react/dist/'
DEST_DIR: ${{ env.AWS_S3_DEST_DIR }}
- name: push to s3 (vue)
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.vue == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.vue == 'true' || steps.changes.outputs.common == 'true')
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
Expand All @@ -126,7 +126,7 @@ jobs:
SOURCE_DIR: 'packages/vue/dist/'
DEST_DIR: ${{ env.AWS_S3_DEST_DIR }}
- name: push to s3 (angular)
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.angular == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.angular == 'true' || steps.changes.outputs.common == 'true')
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
Expand All @@ -137,7 +137,7 @@ jobs:
SOURCE_DIR: 'packages/angular/dist/angular/'
DEST_DIR: ${{ env.AWS_S3_DEST_DIR }}
- name: Invalidate (react)
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.react == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.react == 'true' || steps.changes.outputs.common == 'true')
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_REACT_V2 }}
Expand All @@ -146,7 +146,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Invalidate (vue)
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.vue == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.vue == 'true' || steps.changes.outputs.common == 'true')
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_VUE_V2 }}
Expand All @@ -155,7 +155,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Invalidate (angular)
if: env.PUBLISH == 'true' && (github.event_name == 'schedule' || steps.changes.outputs.angular == 'true' || steps.changes.outputs.common == 'true')
if: env.PUBLISH == 'true' && (steps.manual-trigger.outputs.manual-trigger == 'true' || steps.changes.outputs.angular == 'true' || steps.changes.outputs.common == 'true')
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ANGULAR_V2 }}
Expand Down

0 comments on commit 5777f9b

Please sign in to comment.