Skip to content

Github Release Created #11

Github Release Created

Github Release Created #11

name: Github Release Created
on:
release:
types: ["published"] # Inherits all input defaults
workflow_dispatch:
inputs:
release_tag:
description: "Release tag to simulate (e.g., v1.0.0)"
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
# deploy-main:
# name: Deploy changes to main in nonprod AWS Account
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# contents: read
# steps:
# - name: Checkout repository
# uses: actions/checkout@v5
# - name: Deploy Nonprod Environment
# env:
# APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
# APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
# run: |
# bash .github/scripts/dispatch_internal_repo_workflow.sh \
# --releaseVersion "${{ inputs.release_tag }}" \
# --targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
# --targetEnvironment "main" \
# --targetAccountGroup "nhs-notify-supplier-api-nonprod" \
# --targetComponent "api" \
# --terraformAction "apply"
deploy-proxy:
name: "Deploy proxy"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
contents: read
actions: read
env:
PROXYGEN_API_NAME: nhs-notify-supplier
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
steps:
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Build proxies"
uses: ./.github/actions/build-proxies
with:
environment: "pr310"
apimEnv: "internal-dev"
runId: "${{ github.run_id }}"
releaseVersion: "${{ inputs.release_tag }}"
isRelease: true