From 93e9bebb64f846041b72b737a2605e211b509808 Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:21:19 +1000
Subject: [PATCH 1/8] Update versioning.yml
---
.github/workflows/versioning.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index b76c2a1..1e9ee3d 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -2,6 +2,12 @@ name: Versioning
on:
[push]
+
+env:
+ PROJECT_PATH: 'Pipeline.csproj'
+ PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
+ GIT_SOURCE_URL: 'https://nuget.pkg.github.com/sonomirco/index.json'
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
# This workflow contains a single job called "build"
@@ -34,3 +40,14 @@ jobs:
echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}"
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
+
+ - name: 🧱 Build project
+ run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:PackageVersion=${{ NUGET_VERSION }}
+
+ # create symbols package https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
+ # non
+ - name: 📦 Create the package
+ run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ NUGET_VERSION }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
+
+ - name: 🚀 Publish the package
+ run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${{ GITHUB_TOKEN }}
From 7bdc9a8bb4aab42d74f9c7a8ea39d8a9f611fd9f Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:22:19 +1000
Subject: [PATCH 2/8] Update versioning.yml
---
.github/workflows/versioning.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index 1e9ee3d..5bbbf2f 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -42,12 +42,12 @@ jobs:
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
- name: 🧱 Build project
- run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:PackageVersion=${{ NUGET_VERSION }}
+ run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} -p:Version=${{ steps.gitversion.outputs.semVer }}
# create symbols package https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
# non
- name: 📦 Create the package
- run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ NUGET_VERSION }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
+ run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
- name: 🚀 Publish the package
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${{ GITHUB_TOKEN }}
From d165f97ed1ae0ce848e49f25bc9edd5bd99108a7 Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:24:18 +1000
Subject: [PATCH 3/8] Update versioning.yml
---
.github/workflows/versioning.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index 5bbbf2f..9331511 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -50,4 +50,4 @@ jobs:
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
- name: 🚀 Publish the package
- run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${{ GITHUB_TOKEN }}
+ run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${GITHUB_TOKEN}
From 11de5bd7d6091a9bd29f4b9384d165df9a35833e Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:27:24 +1000
Subject: [PATCH 4/8] Update versioning.yml
---
.github/workflows/versioning.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index 9331511..b3c3289 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -7,7 +7,6 @@ env:
PROJECT_PATH: 'Pipeline.csproj'
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
GIT_SOURCE_URL: 'https://nuget.pkg.github.com/sonomirco/index.json'
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
# This workflow contains a single job called "build"
@@ -50,4 +49,4 @@ jobs:
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
- name: 🚀 Publish the package
- run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${GITHUB_TOKEN}
+ run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }}
From df3032962eb8fe4768dc9cdc81583bf8f5f095f4 Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:36:51 +1000
Subject: [PATCH 5/8] Update versioning.yml
---
.github/workflows/versioning.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index b3c3289..79cf513 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -6,7 +6,6 @@ on:
env:
PROJECT_PATH: 'Pipeline.csproj'
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
- GIT_SOURCE_URL: 'https://nuget.pkg.github.com/sonomirco/index.json'
jobs:
# This workflow contains a single job called "build"
@@ -47,6 +46,9 @@ jobs:
# non
- name: 📦 Create the package
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
+
+ - name: 📑 Dotnet NuGet Add Source
+ run: dotnet nuget add source --username sonomirco --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/sonomirco/index.json"
- name: 🚀 Publish the package
- run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }}
+ run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
From e94cdb4e2405b8be433d44f392d0a8e1ff1b0a7a Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:50:15 +1000
Subject: [PATCH 6/8] Update versioning.yml
---
.github/workflows/versioning.yml | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index 79cf513..40de79a 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -38,17 +38,3 @@ jobs:
echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}"
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
-
- - name: 🧱 Build project
- run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} -p:Version=${{ steps.gitversion.outputs.semVer }}
-
- # create symbols package https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
- # non
- - name: 📦 Create the package
- run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
-
- - name: 📑 Dotnet NuGet Add Source
- run: dotnet nuget add source --username sonomirco --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/sonomirco/index.json"
-
- - name: 🚀 Publish the package
- run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
From 71eba02cde67a29517f7c400bf44e174ee5d7987 Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 20:51:28 +1000
Subject: [PATCH 7/8] Update publish-on-release.yml
---
.github/workflows/publish-on-release.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml
index a8af941..64ea701 100644
--- a/.github/workflows/publish-on-release.yml
+++ b/.github/workflows/publish-on-release.yml
@@ -3,6 +3,10 @@ name: Publish on Release
on:
release:
types: [published]
+
+env:
+ PROJECT_PATH: 'Pipeline.csproj'
+ PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
jobs:
increment-version:
@@ -18,3 +22,16 @@ jobs:
dotnet-version: 3.1.x
- name: Set env
run: echo "NUGET_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
+
+ - name: 🧱 Build project
+ run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} -p:Version=${{ steps.gitversion.outputs.semVer }}
+
+ # create symbols package https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
+ - name: 📦 Create the package
+ run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
+
+ - name: 📑 Dotnet NuGet Add Source
+ run: dotnet nuget add source --username sonomirco --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/sonomirco/index.json"
+
+ - name: 🚀 Publish the package
+ run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
From 0352eefc9758622a491194cd0dffbbd3cbf7bd6a Mon Sep 17 00:00:00 2001
From: Mirco Bianchini <57708659+sonomirco@users.noreply.github.com>
Date: Tue, 27 Jul 2021 21:03:45 +1000
Subject: [PATCH 8/8] Update Pipeline.csproj
---
Pipeline.csproj | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Pipeline.csproj b/Pipeline.csproj
index 94fdf60..f8b0606 100644
--- a/Pipeline.csproj
+++ b/Pipeline.csproj
@@ -6,7 +6,9 @@
git
8
0.1.2
- Pipeliine
+ 0.1.1
+ Pipeline
+ A repo for testing a release pipeline.
https://github.com/sonomirco/Pipeline