mirror of
https://github.com/bitwarden/browser
synced 2026-01-04 17:43:39 +00:00
[ENG 71] Add calls to Github Deployments API to allow Jira integration on Deployments (#3164)
* [ENG-71] updated release-web.yml to add deployment updates. * [ENG-71] Added newline at the end of the file * [ENG-71] Changed environment name. * [ENG-71] Changed branch name again. * Fixed error in brackets. * Added release version * [ENG-71] Updated all the other scripts to track deployments. * [ENG-71] added channel * [ENG-71] Added newline * [ENG-71] Removed separate deployments for choco and snap * [ENG-71] Removed separate deployments * [ENG-71] Added newline * [ENG-71] refined messages * [ENG-71] Changed to separate out environment and description. * [ENG-71] more changes to sepearate environment from description * Job cleanup * Job cleanup * [ENG-71] More job cleanup * [ENG-71] Updated to use commit instead of v2. * [ENG-7] Fixed error referencing release-version Co-authored-by: Todd Martin <>
This commit is contained in:
31
.github/workflows/release-desktop.yml
vendored
31
.github/workflows/release-desktop.yml
vendored
@@ -76,6 +76,22 @@ jobs:
|
||||
;;
|
||||
esac
|
||||
|
||||
- name: Create GitHub deployment
|
||||
uses: chrnorm/deployment-action@1b599fe41a0ef1f95191e7f2eec4743f2d7dfc48
|
||||
id: deployment
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
environment: 'Desktop - Production'
|
||||
description: 'Deployment ${{ steps.version.outputs.version }} to channel ${{ steps.release-channel.outputs.channel }} from branch ${{ github.ref_name }}'
|
||||
task: release
|
||||
|
||||
- name: Update deployment status to In Progress
|
||||
uses: chrnorm/deployment-status@1b599fe41a0ef1f95191e7f2eec4743f2d7dfc48
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
state: 'failure'
|
||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
|
||||
- name: Login to Azure
|
||||
uses: Azure/login@ec3c14589bd3e9312b3cc8c41e6860e258df9010
|
||||
with:
|
||||
@@ -164,6 +180,21 @@ jobs:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
draft: true
|
||||
|
||||
- name: Update deployment status to Success
|
||||
if: success()
|
||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
state: 'success'
|
||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
|
||||
- name: Update deployment status to Failure
|
||||
if: failure()
|
||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||
with:
|
||||
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||
state: 'failure'
|
||||
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
|
||||
snap:
|
||||
name: Deploy Snap
|
||||
|
||||
Reference in New Issue
Block a user