Browse Source

Retro fixes (#1372)

* fix release asset upload

* adding Version to release name

* restricting QA deploys to only manual trigger

* constraining all releases to the rc branch

* removing the release message update
pull/1374/head
Joseph Flinn 5 years ago committed by GitHub
parent
commit
10e85e0181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .github/workflows/qa-deploy.yml
  2. 22
      .github/workflows/release.yml

3
.github/workflows/qa-deploy.yml

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
name: QA Deploy
on:
push:
branches:
- 'rc'
workflow_dispatch:
inputs:
migrateDb:

22
.github/workflows/release.yml

@ -16,6 +16,15 @@ jobs: @@ -16,6 +16,15 @@ jobs:
release_version: ${{ steps.create_tags.outputs.package_version }}
tag_version: ${{ steps.create_tags.outputs.tag_version }}
steps:
- name: Branch check
run: |
if [[ "$GITHUB_REF" != "refs/heads/rc" ]]; then
echo "==================================="
echo "[!] Can only release from rc branch"
echo "==================================="
exit 1
fi
- name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
@ -49,7 +58,7 @@ jobs: @@ -49,7 +58,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG_NAME }}
release_name: ${{ env.RELEASE_NAME }}
release_name: Version ${{ env.RELEASE_NAME }}
draft: true
prerelease: false
@ -152,7 +161,12 @@ jobs: @@ -152,7 +161,12 @@ jobs:
upload:
name: Upload
runs-on: ubuntu-latest
needs: release
needs:
- setup
- release
env:
RELEASE_VERSION: ${{ needs.setup.outputs.release_version }}
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
steps:
- name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
@ -206,7 +220,7 @@ jobs: @@ -206,7 +220,7 @@ jobs:
hub release edit \
-a ./swagger.json \
-a ./docker-stub.zip \
-m "Version $RELEASE_VERSION" \
$RELEASE_TAG_NAME
-m "" \
$TAG_VERSION
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save