Merge pull request #9286 from ForumMagnum/cached-for-non-hybrid-recom… #2005
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Deploy LW-Devel | |
concurrency: deploy-lw-devel | |
on: | |
push: | |
branches: [ deployLessestWrong, master ] | |
jobs: | |
migrate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Migrations | |
if: github.ref == 'refs/heads/lw-deploy' | |
uses: ./.github/actions/runLWMigrations | |
with: | |
mode: dev | |
credentials-repo: ${{ secrets.LW_CREDENTIALS_REPO }} | |
credentials-pat: ${{ secrets.CREDENTIALS_REPO_TOKEN }} | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
environment: [LessestWrong] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '>=3.5 <3.12' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
- run: pip3 install "pyyaml<5.4" && pip3 install --upgrade pip awsebcli # pip3 install "pyyaml<5.4" is a temporary workaround for this bug: https://github.com/aws/aws-elastic-beanstalk-cli/issues/441 | |
- name: Run Deploy | |
run: scripts/deploy.sh LessWrongExpress ${{ matrix.environment }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: "us-east-1" |