Skip to content

2.2.1

2.2.1 #12

Workflow file for this run

# .github/workflows/release.yml
name: Release
on:
pull_request:
types: [closed]
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
if: github.event.pull_request.merged
container:
image: pookmish/drupal8ci:latest
steps:
- name: Get Next Release
id: tag
uses: K-Phoen/semver-release-action@master
with:
release_strategy: none
release_branch: 2.x
tag_format: "2.%minor%.%patch%"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo 'Creating new release for ' ${{ steps.tag.outputs.tag }}
- name: Create Release
if: ${{ steps.tag.outputs.tag }}
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ steps.tag.outputs.tag }}
tag: ${{ steps.tag.outputs.tag }}
commit: ${{ github.sha }}
generateReleaseNotes: true
makeLatest: true
- 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
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- 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: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- run: git config --system --add safe.directory '*'
- name: Deploy Tag
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
vendor/bin/blt deploy --tag=$(echo ${{ steps.date.outputs.date }}_${{ steps.tag.outputs.tag }}) --commit-msg=${{ steps.tag.outputs.tag }} --no-interaction