mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
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
This commit is contained in:
parent
a7d700f1cb
commit
10e85e0181
3
.github/workflows/qa-deploy.yml
vendored
3
.github/workflows/qa-deploy.yml
vendored
@ -1,9 +1,6 @@
|
|||||||
name: QA Deploy
|
name: QA Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'rc'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
migrateDb:
|
migrateDb:
|
||||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -16,6 +16,15 @@ jobs:
|
|||||||
release_version: ${{ steps.create_tags.outputs.package_version }}
|
release_version: ${{ steps.create_tags.outputs.package_version }}
|
||||||
tag_version: ${{ steps.create_tags.outputs.tag_version }}
|
tag_version: ${{ steps.create_tags.outputs.tag_version }}
|
||||||
steps:
|
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
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
||||||
|
|
||||||
@ -49,7 +58,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.RELEASE_TAG_NAME }}
|
tag_name: ${{ env.RELEASE_TAG_NAME }}
|
||||||
release_name: ${{ env.RELEASE_NAME }}
|
release_name: Version ${{ env.RELEASE_NAME }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
@ -152,7 +161,12 @@ jobs:
|
|||||||
upload:
|
upload:
|
||||||
name: Upload
|
name: Upload
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
||||||
@ -206,7 +220,7 @@ jobs:
|
|||||||
hub release edit \
|
hub release edit \
|
||||||
-a ./swagger.json \
|
-a ./swagger.json \
|
||||||
-a ./docker-stub.zip \
|
-a ./docker-stub.zip \
|
||||||
-m "Version $RELEASE_VERSION" \
|
-m "" \
|
||||||
$RELEASE_TAG_NAME
|
$TAG_VERSION
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user