-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
name: Build solution | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Fetch all history for all tags and branches | ||
run: git fetch --prune --unshallow | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.2.x' | ||
- name: Use GitVersion | ||
id: gitversion # step id used as reference for output values | ||
uses: gittools/actions/gitversion/[email protected] | ||
- run: | | ||
echo "Major: ${{ steps.gitversion.outputs.major }}" | ||
echo "Minor: ${{ steps.gitversion.outputs.minor }}" | ||
echo "Patch: ${{ steps.gitversion.outputs.patch }}" | ||
echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}" | ||
echo "PreReleaseTagWithDash: ${{ steps.gitversion.outputs.preReleaseTagWithDash }}" | ||
echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}" | ||
echo "PreReleaseNumber: ${{ steps.gitversion.outputs.preReleaseNumber }}" | ||
echo "WeightedPreReleaseNumber: ${{ steps.gitversion.outputs.weightedPreReleaseNumber }}" | ||
echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}" | ||
echo "BuildMetaDataPadded: ${{ steps.gitversion.outputs.buildMetaDataPadded }}" | ||
echo "FullBuildMetaData: ${{ steps.gitversion.outputs.fullBuildMetaData }}" | ||
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" | ||
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}" | ||
echo "LegacySemVer: ${{ steps.gitversion.outputs.legacySemVer }}" | ||
echo "LegacySemVerPadded: ${{ steps.gitversion.outputs.legacySemVerPadded }}" | ||
echo "AssemblySemVer: ${{ steps.gitversion.outputs.assemblySemVer }}" | ||
echo "AssemblySemFileVer: ${{ steps.gitversion.outputs.assemblySemFileVer }}" | ||
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}" | ||
echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}" | ||
echo "BranchName: ${{ steps.gitversion.outputs.branchName }}" | ||
echo "Sha: ${{ steps.gitversion.outputs.sha }}" | ||
echo "ShortSha: ${{ steps.gitversion.outputs.shortSha }}" | ||
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}" | ||
echo "NuGetVersion: ${{ steps.gitversion.outputs.nuGetVersion }}" | ||
echo "NuGetPreReleaseTagV2: ${{ steps.gitversion.outputs.nuGetPreReleaseTagV2 }}" | ||
echo "NuGetPreReleaseTag: ${{ steps.gitversion.outputs.nuGetPreReleaseTag }}" | ||
echo "VersionSourceSha: ${{ steps.gitversion.outputs.versionSourceSha }}" | ||
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}" | ||
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}" | ||
echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}" | ||
- name: Build with dotnet | ||
run: dotnet build --configuration Release --version-suffix prerelease-$(date +%Y%m%d%H%M%S) | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: NuGet Generation | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
name: Update NuGet package | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Fetch all history for all tags and branches | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.2.x' | ||
- name: Use GitVersion | ||
id: gitversion # step id used as reference for output values | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- name: Setup .NET Core @ Latest | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.102' | ||
|
||
- name: Build solution and generate NuGet package | ||
run: | | ||
cd EF.Extensions.PgCopy | ||
dotnet pack -c Release -o out /p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }} | ||
- name: Push generated package | ||
run: | | ||
dotnet nuget push ./EF.Extensions.PgCopy/out/*.nupkg --api-key ${{secrets.Nuget}} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters