Skip to content

Commit

Permalink
try deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rjruizes committed Oct 16, 2023
1 parent 3d7cb7d commit 7daa542
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ jobs:
- run: npm ci
- run: npm run lint --no-fix --no-error-on-unmatched-pattern
- run: npm test
- run: npm run docs:generate
- run: npm run docs:build

# - name: Build and Deploy Docs
# if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
# run: |
# docker exec -t harness-vue-ci npm run docs:generate
# docker exec -t harness-vue-ci npm run docs:build
# # docker exec -t harness-vue-ci aws configure set region us-east-1
# # docker exec -t harness-vue-ci aws configure set aws_access_key_id ${{ secrets.S3_ONLY_AWS_ACCESS_KEY_ID }}
# # docker exec -t harness-vue-ci aws configure set aws_secret_access_key ${{ secrets.S3_ONLY_AWS_SECRET_ACCESS_KEY }}
# # docker exec -t harness-vue-ci aws s3 rm s3://harness-docs --recursive
# # docker exec -t harness-vue-ci aws s3 sync docs/.vitepress/dist s3://harness-docs
# # docker exec -t harness-vue-ci aws cloudfront create-invalidation --distribution-id E3K46T9KULV7VZ --paths "/*"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.S3_ONLY_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.S3_ONLY_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Build and deploy
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
run: |
npm run docs:generate
npm run docs:build
aws s3 rm s3://harness-docs --recursive
aws s3 sync docs/.vitepress/dist s3://harness-docs
aws cloudfront create-invalidation --distribution-id E3K46T9KULV7VZ --paths "/*"

0 comments on commit 7daa542

Please sign in to comment.