Skip to content

Commit f4c0cff

Browse files
committed
[New Feature] (config) Add new CI/CD configuration for deployment.
1 parent 79a3614 commit f4c0cff

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: GitHub Action reusable workflow build
2+
3+
on:
4+
push:
5+
branches:
6+
- "develop"
7+
- "release"
8+
- "master"
9+
paths-ignore:
10+
- ".gitcommitrules"
11+
- ".gitignore"
12+
- "LICENSE"
13+
- "README.md"
14+
15+
pull_request:
16+
branches:
17+
- "develop"
18+
- "release"
19+
paths-ignore:
20+
- ".gitcommitrules"
21+
- ".gitignore"
22+
- "LICENSE"
23+
- "README.md"
24+
25+
jobs:
26+
test_build_git-tag_and_create_github-release:
27+
# name: Build git tag and GitHub release if it needs
28+
uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml
29+
with:
30+
project_type: github-action-reusable-workflow
31+
debug_mode: false
32+
33+
34+
test_deploy_as_new_branch:
35+
# name: Create new git branch by the tagged commit
36+
needs: test_build_git-tag_and_create_github-release
37+
if: ${{ github.ref_name == 'master' &&
38+
github.event_name == 'push' &&
39+
needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version != 'Pre' }}
40+
runs-on: ubuntu-latest
41+
env:
42+
RELEASE_TYPE: ${{ needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version }}
43+
DEBUG_MODE: false
44+
steps:
45+
- uses: actions/checkout@v2
46+
47+
- name: Check it whether get the output of previous one job which has version info or not
48+
run: bash scripts/ci/check_getting_output.sh
49+
50+
- name: Create new git branch by the tagged commit
51+
run: bash ./scripts/ci/deployment_new_version_workflow.sh $DEBUG_MODE
52+

0 commit comments

Comments
 (0)