From a932b8efbd6e7a4288fca495c71ab2ddd783f9c0 Mon Sep 17 00:00:00 2001 From: Jan Staelens Date: Wed, 6 Dec 2023 16:15:20 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..242a1f8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: DataMiner CICD NuGet Solution + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events. + push: + branches: [] + tags: + - "[0-9]+.[0-9]+.[0-9]+.[0-9]+" + - "[0-9]+.[0-9]+.[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: + +# Note: Tagging will push the nupackage to nuget.org using the provided NUGETAPIKEY. You can tag both a prerelease version (a.b.c-xxxx) or a stable release (a.b.c). + CICD: + uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/NuGet Solution Master Workflow.yml@main + with: + referenceName: ${{ github.ref_name }} + runNumber: ${{ github.run_number }} + referenceType: ${{ github.ref_type }} + repository: ${{ github.repository }} + owner: ${{ github.repository_owner }} + sonarCloudProjectName: SkylineCommunications_Skyline.DataMiner.CICD.Tools.CatalogUpload + secrets: + sonarCloudToken: ${{ secrets.SONAR_TOKEN }} + pfx: ${{ secrets.PFX }} + pfxPassword: ${{ secrets.PFXPASSWORD }} + nugetApiKey: ${{ secrets.NUGETAPIKEY }}