Skip to content

Commit

Permalink
Checkout new release from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed May 24, 2024
1 parent 088cee9 commit 66502c7
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Create new release
on:
workflow_dispatch:
inputs:
target_branch:
description: "Target branch or full commit SHA"
required: true
release_tag:
description: "Release tag"
required: true
Expand All @@ -12,6 +15,11 @@ on:
run-tests:
description: "Run all tests (true/false)"
required: true
type: string
set_latest:
description: "Set the release as latest"
required: true
type: boolean
jobs:
release:
name: Release pushed tag
Expand All @@ -23,45 +31,53 @@ jobs:
tag: ${{ github.event.inputs.release_tag }}
title: ${{ github.event.inputs.release_name }}
tests: ${{ github.event.inputs.run-tests }}
target_branch: ${{ github.event.inputs.target_branch }}
latest: ${{ github.event.inputs.set_latest }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="$title" \
--notes="Run tests: $tests"
--notes="Run tests: $tests"\
--target="$target_branch" \
--latest=$latest
ubuntu:
name: Release - Ubuntu
needs: release
uses: ./.github/workflows/ubuntu.yml
with:
run-tests: ${{ fromJSON(inputs.run-tests) }}
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

windows:
name: Release - Windows
needs: release
uses: ./.github/workflows/windows-vcpkg.yml
with:
run-tests: ${{ fromJSON(inputs.run-tests) }}
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

centos7:
name: Release - centos7
needs: release
uses: ./.github/workflows/centos7.yml
with:
run-tests: ${{ fromJSON(inputs.run-tests) }}
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

oracle8:
name: Release - oracle8
needs: release
uses: ./.github/workflows/oracle8.yml
with:
run-tests: ${{ fromJSON(inputs.run-tests) }}
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

user_guide:
name: User Guide
needs: release
uses: ./.github/workflows/build-userguide.yml
with:
run-tests: ${{ fromJSON(inputs.run-tests) }}
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

0 comments on commit 66502c7

Please sign in to comment.