|
7 | 7 | - '[0-9]+.[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+'
|
8 | 8 | workflow_dispatch:
|
9 | 9 | jobs:
|
10 |
| - # CI: |
11 |
| - # name: CI |
12 |
| - # uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Automation Master Workflow.yml@main |
13 |
| - # with: |
14 |
| - # referenceName: ${{ github.ref_name }} |
15 |
| - # runNumber: ${{ github.run_number }} |
16 |
| - # referenceType: ${{ github.ref_type }} |
17 |
| - # repository: ${{ github.repository }} |
18 |
| - # owner: ${{ github.repository_owner }} |
19 |
| - # sonarCloudProjectName: qsdqsd |
20 |
| - # secrets: |
21 |
| - # api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }} |
22 |
| - # sonarCloudToken: ${{ secrets.SONAR_TOKEN }} |
| 10 | + CI: |
| 11 | + name: CI |
| 12 | + uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Automation Master Workflow.yml@main |
| 13 | + with: |
| 14 | + referenceName: ${{ github.ref_name }} |
| 15 | + runNumber: ${{ github.run_number }} |
| 16 | + referenceType: ${{ github.ref_type }} |
| 17 | + repository: ${{ github.repository }} |
| 18 | + owner: ${{ github.repository_owner }} |
| 19 | + sonarCloudProjectName: qsdqsd |
| 20 | + secrets: |
| 21 | + api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }} |
| 22 | + sonarCloudToken: ${{ secrets.SONAR_TOKEN }} |
23 | 23 |
|
24 | 24 | Release:
|
25 |
| - # if: github.ref_type == 'tag' |
| 25 | + if: github.ref_type == 'tag' |
26 | 26 | runs-on: ubuntu-latest
|
27 |
| - # needs: CI |
| 27 | + needs: CI |
| 28 | + permissions: |
| 29 | + contents: write |
28 | 30 | steps:
|
29 | 31 | - name: Checkout Code
|
30 | 32 | uses: actions/checkout@v4
|
@@ -66,19 +68,33 @@ jobs:
|
66 | 68 | exit 1
|
67 | 69 | fi
|
68 | 70 |
|
| 71 | + - name: Retrieve Installation Package |
| 72 | + id: retrieveInstallationPackage |
| 73 | + uses: actions/download-artifact@v4 |
| 74 | + with: |
| 75 | + name: DataMiner Installation Package |
| 76 | + path: _DataMinerInstallationPackage |
| 77 | + |
| 78 | + - name: Find Installation Package |
| 79 | + id: findInstallationPackage |
| 80 | + run: | |
| 81 | + echo dmappPackageName=$(find _DataMinerInstallationPackage -type f -name '*.dmapp') >> $GITHUB_OUTPUT |
| 82 | +
|
69 | 83 | - name: Logging
|
70 | 84 | run: |
|
71 | 85 | echo ${{ steps.changelog_check.outputs.changelog_exists }}
|
72 | 86 | echo ${{ steps.changelog_check.outputs.changelog_file }}
|
73 | 87 | echo ${{ steps.release_check.outputs.prerelease }}
|
| 88 | + echo ${{ steps.findInstallationPackage.outputs.dmappPackageName }} |
74 | 89 |
|
75 | 90 | - name: Create Release
|
76 |
| - uses: actions/create-release@v1 |
| 91 | + uses: ncipollo/release-action@v1 |
77 | 92 | env:
|
78 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 93 | + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} |
79 | 94 | with:
|
80 |
| - tag_name: ${{ secrets.REF_NAME }} |
81 |
| - release_name: ${{ secrets.REF_NAME }} |
82 |
| - body_path: ${{ steps.changelog_check.outputs.changelog_file }} |
| 95 | + name: ${{ secrets.REF_NAME }} |
| 96 | + bodyFile: ${{ steps.changelog_check.outputs.changelog_file }} |
83 | 97 | draft: false
|
84 | 98 | prerelease: ${{ steps.release_check.outputs.prerelease == 'true' }}
|
| 99 | + allowUpdates: true |
| 100 | + artifacts: ${{ steps.findInstallationPackage.outputs.dmappPackageName }} |
0 commit comments