Skip to content

Commit 3831dd0

Browse files
ci: add gitflow workflow action
1 parent d462ad7 commit 3831dd0

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Release
22

33
on:
4-
push:
4+
pull_request:
5+
types:
6+
- closed
57
branches:
68
- main
79
paths:
@@ -10,6 +12,11 @@ on:
1012
- mantle.yml
1113
- package.json
1214
workflow_dispatch:
15+
inputs:
16+
version:
17+
type: string
18+
required: true
19+
description: Version to release
1320

1421
permissions:
1522
contents: write
@@ -84,3 +91,17 @@ jobs:
8491
ROBLOSECURITY: ${{ secrets.ROBLOSECURITY }}
8592
MANTLE_AWS_ACCESS_KEY_ID: ${{ secrets.MANTLE_AWS_ACCESS_KEY_ID }}
8693
MANTLE_AWS_SECRET_ACCESS_KEY: ${{ secrets.MANTLE_AWS_SECRET_ACCESS_KEY }}
94+
95+
release_workflow:
96+
runs-on: ubuntu-latest
97+
needs: deploy
98+
steps:
99+
- name: GitFlow workflow action - Release workflows
100+
uses: hoangvvo/gitflow-workflow-action@0.3.7
101+
with:
102+
develop_branch: develop
103+
main_branch: main
104+
merge_back_from_main: false
105+
version: ${{ inputs.version }}
106+
env:
107+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)