Skip to content

Commit

Permalink
ci: Update to use 's3-deploy-action' & 'ubuntu-latest' (PT-184551773)
Browse files Browse the repository at this point in the history
  • Loading branch information
433eros committed Mar 23, 2023
1 parent 51891b6 commit 9575d22
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,32 @@ jobs:
# with:
# flags: cypress
s3-deploy:
name: S3 Deploy
name: Deploy to Amazon S3
needs:
- build_test
# - cypress
runs-on: ubuntu-18.04
#- cypress
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
node-version: '16'
- name: Install Dependencies
run: |
gem install bundler
bundle install
gem install s3_website -v 3.4.0
npm ci --legacy-peer-deps
- name: Build
run: npm run build
- name: Deploy
run: ./bin/s3_deploy.sh
run: npm ci
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Skip installing Cypress since it isn't needed for just building
# This decreases the deploy time quite a bit
CYPRESS_INSTALL_BINARY: 0
- name: Deploy files to Amazon S3
uses: concord-consortium/s3-deploy-action@v1
with:
bucket: models-resources
prefix: ${{ github.event.repository.name }}-dev # 'codap-dev'
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Add the default branch and the current branch as top branches
topBranches: |-
[
"${{ github.event.repository.default_branch }}",
"${{ github.ref_name }}"
]

0 comments on commit 9575d22

Please sign in to comment.