Skip to content

Create release

Create release #53

Workflow file for this run

name: Create release
on:
workflow_dispatch:
inputs:
branch-name:
description: The name of the branch that will be targeted by the pipeline.
required: true
jobs:
release:
permissions:
contents: write
actions: write
environment: 'Release'
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create or Update Branch
env:
BRANCH_NAME: ${{ github.event.inputs.branch-name }}
run: node ./build/release-version.js
- name: Build and Run Unit Tests
uses: ./.github/actions/build
- name: Set Tag Name
shell: bash
run: |
echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "Using tag: ${{ env.TAG_NAME }}"
- name: Create Github Release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ env.TAG_NAME }}
run: |
npm run zipForGitReleases
node ./build/github-release.deploy.js
- name: Call search-ui-cd
env:
GH_TOKEN: ${{ secrets.SEARCH_UI_CD_DISPATCHER }}
RELEASE_BRANCH_NAME: ${{ github.event.inputs.branch-name }}
run: node ./scripts/deploy/trigger-search-ui-cd.mjs