-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (64 loc) · 2.56 KB
/
develop.yml
File metadata and controls
77 lines (64 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
###############################################################################
#
# Continuous Improvement/Continuous Deployment Pipeline
#
###############################################################################
name: CI/CD Pipeline
on:
# Execute on pushes to master branch.
pull_request:
branches:
- master
jobs:
CICD:
runs-on: ubuntu-latest
env:
scenariosFolderPath: ${{ './Scenarios' }}
scenariosFileFilter: ${{ '*.scenario.json' }}
steps:
###########################################################################
# Steps used for both CI and CD.
###########################################################################
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# https://github.com/anothrNick/github-tag-action
- name: Bump version and DON'T push tag
id: bumpVersion
uses: anothrNick/github-tag-action@1.17.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DRY_RUN: true
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
# Set internal variables that the user will not want to set themselves.
- name: Set environment variables
run: echo "::set-env name=semVer::${{ steps.bumpVersion.outputs.new_tag }}"
###########################################################################
#
# Continuous Integration
#
###########################################################################
# Import Scenarios in source to the bot instance.
- name: Import HCB Scenarios.
run: |
Import-Module -Name ./Scripts/ScenarioImportExport/HCBotScenarioIE/;
Set-HCBScenario -FromFolder ${{ env.scenariosFolderPath }} -FileFilter ${{ env.scenariosFileFilter }} -Tenant ${{ secrets.PROD_TENANT_NAME }} -JwtSecret ${{ secrets.PROD_JWT_SECRET }} -InformationAction Continue;
shell: pwsh
###########################################################################
#
# Continuous Delivery
#
###########################################################################
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.semVer }}
release_name: Release ${{ env.semVer }}
body: |
Creating a new release
draft: false
prerelease: false