Sha256: add6297e5d6bef7455512163940ef595ef64c8befb2c50970e49900f8b51dda3

Contents?: true

Size: 1.41 KB

Versions: 10

Compression:

Stored size: 1.41 KB

Contents

#!/bin/bash
set -e

REPO_PATH="alphagov/govuk_frontend_toolkit"

echo "Add config for alphagov/$REPO_PATH"

git config --global user.name "GOV.UK Design System CI"
git config --global user.email "design-system-pipeline@digital.cabinet-office.gov.uk"
git remote add origin_ssh git@github.com:$REPO_PATH.git

# This openssl command was generated automatically by `travis encrypt-file`, see `.travis/README.md` for more details
openssl aes-256-cbc -K $encrypted_53be47f46000_key -iv $encrypted_53be47f46000_iv -in .travis/govuk_frontend_toolkit_push.enc -out ~/.ssh/id_rsa -d
chmod 600 ~/.ssh/id_rsa

echo "Check to see if the version file has been updated"

# get the version from the version file
VERSION_TAG="v`cat VERSION.txt`"

# Create a new tag - if the version file has been updated and a tag for that
# version doesn't already exist

# check to make sure the tag doesn't already exist
if ! git rev-parse $VERSION_TAG >/dev/null 2>&1; then
  echo "Creating new tag: $VERSION_TAG"

  # Create a new tag and push to Github
  git tag $VERSION_TAG
  git push origin_ssh $VERSION_TAG

  # Alias branch for the most recently released tag, for easier diffing
  # Force push local `master` branch to the `latest-release` branch on Github
  git push --force origin_ssh master:latest-release
  echo "Pushed latest-release branch to GitHub"
else
  echo "Not creating a new tag, or updating the latest-release branch as the tag already exists..."
fi

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
govuk_frontend_toolkit-9.0.1 app/assets/create-release.sh
govuk_frontend_toolkit-9.0.0 app/assets/create-release.sh
govuk_frontend_toolkit-8.2.0 app/assets/create-release.sh
govuk_frontend_toolkit-8.1.0 app/assets/create-release.sh
govuk_frontend_toolkit-8.0.0 app/assets/create-release.sh
govuk_frontend_toolkit-7.6.0 app/assets/create-release.sh
govuk_frontend_toolkit-7.5.0 app/assets/create-release.sh
idsk_frontend_toolkit-7.4.2 app/assets/create-release.sh
govuk_frontend_toolkit-7.4.2 app/assets/create-release.sh
govuk_frontend_toolkit-7.4.1 app/assets/create-release.sh