Skip to content

Merge pull request #18 from pantheon-systems/release-0.1.1 #6

Merge pull request #18 from pantheon-systems/release-0.1.1

Merge pull request #18 from pantheon-systems/release-0.1.1 #6

Workflow file for this run

name: Build and Tag
on:
push:
branches:
- 'release'
jobs:
tag:
name: Tag with Assets
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# TODO: In the future, with-node should be an optional param in the action.
- name: Build
run: |
npm ci
npm run build
composer install --no-dev -o
- name: Setup
run: |
VERSION=$(cat README.MD| grep 'Stable tag:' | awk '{print $3}')
[[ "$VERSION" != "" ]] || exit 1
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Tag
run: |
echo "Releasing version $VERSION ..."
[[ "$VERSION" != "" ]] || exit 1
git config user.name Pantheon Automation
git config user.email [email protected]
git checkout -b "robot-release-$VERSION"
git add -f assets/* # TODO: In the future, this should be keyed off of a parameter in the action that toggles whether we should build assets.
git add -f vendor/*
git commit -m "Release $VERSION"
git tag "$VERSION"
git push --tags
prepare-dev:
name: Prepare next dev release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Update Development Branch
run: bash ./bin/prepare-dev.sh