diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index cb152b0..d2c2024 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -22,31 +22,11 @@ jobs: run: npm run build - name: Test run: npm run test:headless - # - name: Archive build - # if: success() - # uses: actions/upload-artifact@v1 - # with: - # name: deploy_dist - # path: dist - # - name: Archive code coverage result - # if: success() - # uses: actions/upload-artifact@v1 - # with: - # name: deploy_coverage - # path: coverage - # deploy: - # runs-on: ubuntu-latest - # needs: build - # steps: - # - name: Checkout - # uses: actions/checkout@v1 - # - name: Download build - # uses: actions/download-artifact@v1 - # with: - # name: deploy_dist - # - name: Deploy to GitHub Pages - # uses: JamesIves/github-pages-deploy-action@releases/v3 - # with: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # BRANCH: gh-pages - # FOLDER: deploy_dist/angular-demo \ No newline at end of file + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${AWS_ROLE} + aws-region: us-east-2 + - name: Copy files to the test website with the AWS CLI + run: | + aws s3 sync . s3://${S3_BUCKET}