Skip to content

Commit

Permalink
Add extra CI workflow steps to ensure that releases would not be mark…
Browse files Browse the repository at this point in the history
…ed as drafts
  • Loading branch information
d1vanov committed Nov 30, 2023
1 parent 9d5dc08 commit 72324b9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,24 @@ jobs:
if: ${{ github.ref == 'refs/heads/development' }}
shell: bash

- name: Ensure continuous master release is not a draft
id: ensure_continuous_master_is_not_a_draft
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.ref }}
run: |
gh release edit continuous-master --draft=false -R d1vanov/QEverCloudGenerator
- name: Ensure continuous development release is not a draft
id: ensure_continuous_development_is_not_a_draft
if: ${{ github.ref == 'refs/heads/development' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF: ${{ github.ref }}
run: |
gh release edit continuous-development --draft=false -R d1vanov/QEverCloudGenerator
- name: Upload Linux artifact to tagged release
id: upload_linux_artifact_to_tagged_release
env:
Expand Down Expand Up @@ -659,3 +677,12 @@ jobs:
fi
if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development' }}
shell: bash

- name: Ensure tagged release is not a draft
id: ensure_tagged_release_is_not_a_draft
if: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REF_NAME: ${{ github.ref_name }}
run: |
gh release edit "$GITHUB_REF_NAME" --draft=false -R d1vanov/QEverCloudGenerator

0 comments on commit 72324b9

Please sign in to comment.