-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 2.25 KB
/
dataminer-cicd-automation-deployonly.yml
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
name: DataMiner DeployOnly Automation
# Prerequisite: secret 'DATAMINER_DEPLOY_KEY' necessary on Repository or Organization level.
# Value is the API-key generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System.
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: []
tags:
- "[0-9]+.[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+.[0-9]+-**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
CD:
name: CD
environment: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Find .sln file
id: findSlnFile
run: |
echo solutionFilePath=$(find . -type f -name '*.sln') >> $GITHUB_OUTPUT
shell: bash
- name: Skyline DataMiner Deploy Action Development
if: github.ref_type == 'branch'
uses: SkylineCommunications/Skyline-DataMiner-Deploy-Action@v1
with:
# Stage deploy
stage: All
# The API-key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System.
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
solution-path: ./${{ steps.findSlnFile.outputs.solutionFilePath }}
artifact-name: ${{ github.repository }} ${{ github.ref_name }}_B${{ github.run_number }}
build-number: ${{ github.run_number }}
- name: Skyline DataMiner Deploy Action Release
if: github.ref_type == 'tag'
uses: SkylineCommunications/Skyline-DataMiner-Deploy-Action@v1
with:
# Stage deploy
stage: All
# The API-key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System.
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
solution-path: ./${{ steps.findSlnFile.outputs.solutionFilePath }}
artifact-name: ${{ github.repository }} ${{ github.ref_name }}
version: ${{ github.ref_name }}