Skip to content

Commit 973f62a

Browse files
committed
Update release to be triggered on successful build.
1 parent 33e9184 commit 973f62a

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
name: Release
22
permissions:
33
packages: write
4+
contents: write
45
on:
6+
# Triggered on new GitHub Release
57
release:
68
types: [published]
9+
# Triggered on every successful Build action
10+
workflow_run:
11+
workflows: ["Build"]
12+
branches: [main,master]
13+
types:
14+
- completed
15+
# Manual trigger for rollback to specific release or redeploy latest
16+
workflow_dispatch:
17+
inputs:
18+
version:
19+
default: latest
20+
description: Tag you want to release.
21+
required: true
22+
723
jobs:
824
push_to_registry:
925
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)