Skip to content

Commit d5dbf68

Browse files
committed
test
1 parent d039a66 commit d5dbf68

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/dataminer-cicd-automation-deployonly.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
CD:
2222
name: CD
2323
environment: staging
24-
runs-on: ubuntu-latest
24+
runs-on: windows-latest
2525
steps:
2626
- uses: actions/checkout@v4
2727

@@ -59,13 +59,23 @@ jobs:
5959
dotnet tool install -g Skyline.DataMiner.CICD.Tools.CatalogUpload
6060
dotnet tool install -g Skyline.DataMiner.CICD.Tools.DataMinerDeploy
6161
62+
- name: Create package name
63+
id: packageName
64+
run: |
65+
tempName = "${{ github.repository }} ${{ github.ref_name }}"
66+
echo name = $tempName//["\/\\<>|:*?\0]/_ >> $GITHUB_OUTPUT
67+
shell: bash
68+
6269
- name: Create dmapp package
63-
run: dataminer-package-create dmapp "${{ github.workspace }}" --type automation --version ${{ github.ref_name }} --output "${{ github.workspace }}" --name "${{ github.repository////_ }} ${{ github.ref_name }}"
70+
run: |
71+
name = "${{ github.repository }} ${{ github.ref_name }}"
72+
dataminer-package-create dmapp "${{ github.workspace }}" --type automation --version ${{ github.ref_name }} --output "${{ github.workspace }}" --name "${{ steps.packageName.outputs.name }}"
73+
shell: bash
6474

6575
- name: Upload to Catalog
6676
id: uploadToCatalog
6777
run: |
68-
echo id = dataminer-catalog-upload --path-to-artifact "${{ github.workspace }}\\${{ github.repository////_ }} ${{ github.ref_name }}.dmapp" --dm-catalog-token ${{ secrets.DATAMINER_DEPLOY_KEY }} >> $GITHUB_OUTPUT
78+
echo id = dataminer-catalog-upload --path-to-artifact "${{ github.workspace }}\\${{ steps.packageName.outputs.name }}.dmapp" --dm-catalog-token ${{ secrets.DATAMINER_DEPLOY_KEY }} >> $GITHUB_OUTPUT
6979
7080
- name: Deploy to DataMiner
7181
run: |

0 commit comments

Comments
 (0)