Skip to content

Continuous Releasing #213

Continuous Releasing

Continuous Releasing #213

name: Continuous Releasing
on:
workflow_run:
workflows: Continuous Packing
types: completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: write
env:
CICD_PROJECT_ACRONYM: QLDSK
CICD_PROJECT_SLUG: quake-leveldesign-starterkit
jobs:
run-on-workflow-success:
name: Check the previous workflow status
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout the local repository files
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
fetch-depth: 0
- name: Check the previous workflow status
uses: ./.github/actions/_shared/check-previous-workflow-status
release-starter-kit:
name: Release the starter kit
needs: run-on-workflow-success
runs-on: ubuntu-22.04
timeout-minutes: 45
steps:
- name: Checkout the local repository files
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
fetch-depth: 0
- name: Set the current commit HEAD SHA
uses: ./.github/actions/_shared/set-current-commit-head-sha
- name: Set the current date
uses: ./.github/actions/_shared/set-current-date
- name: "Release Files: Download the artifact"
uses: ./.github/actions/_shared/download-artifact
with:
ARTIFACT_FILENAME: ^${{ env.CICD_PROJECT_SLUG }}.*$
CICD_WORKFLOW: continuous-packing.yml
- name: "Release Notes: Unpack the artifact"
run: |
set -euo pipefail
7z x "${{ env.CICD_PROJECT_SLUG }}-${{ env.CICD_CURRENT_DATE }}-release-notes.zip" -o"${{ env.CICD_PROJECT_SLUG }}/" -y
shell: bash
- name: Release the starter kit
uses: ./.github/actions/continuous-releasing/release-starter-kit
with:
CICD_CURRENT_DATE: ${{ env.CICD_CURRENT_DATE }}
CICD_PROJECT_ACRONYM: ${{ env.CICD_PROJECT_ACRONYM }}
CICD_PROJECT_SLUG: ${{ env.CICD_PROJECT_SLUG }}
GIT_CURRENT_COMMIT_HEAD_SHA: ${{ env.GIT_CURRENT_COMMIT_HEAD_SHA }}