diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9f006a8380145a76191b0cbb5d3f4f0b348b0fd2..ac3d7c0a5d62bfaff0f7ed1a655e75e04e1c092d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,52 +31,19 @@ jobs: version_format: "${major}.${minor}.${patch}.${increment}" change_path: "src/NebulaBus" - # - name: Install GitVersion - # uses: gittools/actions/gitversion/setup@v3.2.0 - # with: - # versionSpec: "6.2.x" - - # - name: Determine Version - # id: gitversion - # uses: gittools/actions/gitversion/execute@v3.2.0 - # with: - # updateAssemblyInfo: true - # useConfigFile: true - # configFilePath: src/GitVersion.yaml - - - run: | - echo "FullSemVer (env.fullSemVer) : ${{ steps.gitversion.outputs }}" - name: Display GitVersion variables (without prefix) - - # - run: | - # echo "FullSemVer (env.GitVersion_FullSemVer) : ${{ env.GitVersion_FullSemVer }}" - # name: Display GitVersion variables (with prefix) - - # - run: | - # echo "FullSemVer (steps.gitversion.outputs.fullSemVer) : ${{ steps.gitversion.outputs.fullSemVer }}" - # name: Display GitVersion outputs (step output without prefix) - - # - run: | - # echo "FullSemVer (steps.gitversion.outputs.GitVersion_FullSemVer) : ${{ steps.gitversion.outputs.GitVersion_FullSemVer }}" - # name: Display GitVersion outputs (step output with prefix) - - name: Build & Pack working-directory: src/NebulaBus run: | dotnet restore dotnet build --configuration Release --no-restore - dotnet pack NebulaBus.csproj -p:PackageVersion=${{ steps.gitversion.outputs.version }} --output nupkgs + dotnet pack NebulaBus.csproj /p:FileVersion=${{ steps.gitversion.outputs.version }} /p:Version=${{ steps.gitversion.outputs.version }} -p:PackageVersion=${{ steps.gitversion.outputs.version }} --output nupkgs - - name: Show Package - run: | - cd nupkgs - ls -l - # - name: Push to NuGet - # run: dotnet nuget push "nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + - name: Push to NuGet + run: dotnet nuget push "nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json - # - name: Create Git Tag - # run: | - # git config --global user.name "GitHub Actions" - # git config --global user.email "actions@github.com" - # git tag ${{ env.TAG }} -m "Release ${{ env.TAG }}" - # git push origin ${{ env.TAG }} + - name: Create Git Tag + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + git tag ${{ steps.gitversion.outputs.version_tag }} -m "Release ${{ steps.gitversion.outputs.version_tag }}" + git push origin ${{ steps.gitversion.outputs.version_tag }} diff --git a/.gitignore b/.gitignore index e54cfbe1eb4f0586221cc9d2c22004cf0ec4fa51..c599bb4901b7ae36d907399db2983f8320c3d937 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ bld/ # Visual Studio 2015/2017 cache/options directory .vs/ +.idea/ # Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/