Skip to content

Commit c485d07

Browse files
committed
create release action
1 parent dd4d630 commit c485d07

File tree

1 file changed

+36
-20
lines changed

1 file changed

+36
-20
lines changed

.github/workflows/DataMiner+CI+Automation.yml

+36-20
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,26 @@ on:
77
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+'
88
workflow_dispatch:
99
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 }}
2323

2424
Release:
25-
# if: github.ref_type == 'tag'
25+
if: github.ref_type == 'tag'
2626
runs-on: ubuntu-latest
27-
# needs: CI
27+
needs: CI
28+
permissions:
29+
contents: write
2830
steps:
2931
- name: Checkout Code
3032
uses: actions/checkout@v4
@@ -66,19 +68,33 @@ jobs:
6668
exit 1
6769
fi
6870
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+
6983
- name: Logging
7084
run: |
7185
echo ${{ steps.changelog_check.outputs.changelog_exists }}
7286
echo ${{ steps.changelog_check.outputs.changelog_file }}
7387
echo ${{ steps.release_check.outputs.prerelease }}
88+
echo ${{ steps.findInstallationPackage.outputs.dmappPackageName }}
7489
7590
- name: Create Release
76-
uses: actions/create-release@v1
91+
uses: ncipollo/release-action@v1
7792
env:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
7994
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 }}
8397
draft: false
8498
prerelease: ${{ steps.release_check.outputs.prerelease == 'true' }}
99+
allowUpdates: true
100+
artifacts: ${{ steps.findInstallationPackage.outputs.dmappPackageName }}

0 commit comments

Comments
 (0)