Skip to content

Lando Setup Fixes (#57) #119

Lando Setup Fixes (#57)

Lando Setup Fixes (#57) #119

name: Deploy Main Branch Artifact
on:
push:
branches:
- '2.x'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Deploy Main Artifact
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:latest
steps:
- uses: actions/checkout@v3
- name: Restore Cache
uses: actions/cache@v3
with:
path: |
vendor
docroot/core
docroot/libraries
docroot/modules/contrib
key: 2.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
restore-keys: |
2.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
2.x-${{ hashFiles('composer.json') }}-
2.x-
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: fail
- run: git config --system --add safe.directory '*'
- name: Deploy Artifact
run: |
git config --global user.email "sws-developers@lists.stanford.edu"
git config --global user.name "Github Actions"
ssh-keyscan -t rsa svn-45197.prod.hosting.acquia.com >> /root/.ssh/known_hosts
composer install -n
blt blt:telemetry:disable --no-interaction
blt deploy -v -n