Merge pull request #2048 from usdoj/release-9.4.2 #20
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
name: Deploy to production environment - www.foia.gov | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
# Build for the Acquia Cloud production environment | |
build: | |
env: | |
GIT_REPO: ${{ secrets.GIT_REPO }} | |
APP_ENV: production | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
name: Setup RUBY | |
- name: Install dependencies | |
run: | | |
npm i | |
bundle install | |
- name: Build site | |
run: | | |
NODE_ENV=production make build | |
# Install SSH Key | |
- name: Install SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_KEY }} | |
- name: Acquia known hosts | |
run: | | |
echo "${{ secrets.KNOWN_HOSTS }}" >> ~/.ssh/known_hosts | |
- name: Deploy to Acquia development | |
run: | | |
chmod +x ./bin/git-deploy.sh | |
./bin/git-deploy.sh _site production | |
shell: bash |