Create a production release #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2021-2023 Technology Matters | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published | |
# by the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU Affero General Public License for more details. | |
# | |
# You should have received a copy of the GNU Affero General Public License | |
# along with this program. If not, see https://www.gnu.org/licenses/. | |
# Workflow to create a new production release from a given qa tag | |
name: Create a production release | |
# Controls when the action will run. | |
on: | |
workflow_dispatch: | |
inputs: | |
tag-name: | |
description: Tag name - The name for the tag that will be given to this release. | |
required: true | |
title: | |
description: Release title - The title that will be given to this pre-release. | |
required: true | |
jobs: | |
generate-release: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Create production release | |
uses: techmatters/flex-plugins/.github/actions/generate-production-release@master | |
with: | |
tag-name: ${{ inputs.tag-name }} | |
title: ${{ inputs.title }} | |
id: create_prod_release | |
# Send Slack notifying success | |
- name: Slack aselo-deploys channel | |
uses: techmatters/flex-plugins/.github/actions/notify-deploys@master | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
slack-message: '`[HRM]` Production Release from ${{ github.ref_type }} `${{ github.ref_name }}` requested by `${{ github.triggering_actor }}` completed with SHA ${{ github.sha }}. Release tag is `${{ steps.create_prod_release.outputs.generated-release-tag }}` :rocket:.' | |
env: | |
SLACK_BOT_TOKEN: ${{ env.GITHUB_ACTIONS_SLACK_BOT_TOKEN }} |