-
-
Notifications
You must be signed in to change notification settings - Fork 852
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
1 parent
d49d552
commit 6521c1c
Showing
7 changed files
with
19 additions
and
57 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 |
---|---|---|
|
@@ -52,31 +52,15 @@ jobs: | |
git fetch --prune --unshallow | ||
git submodule -q update --init --recursive | ||
- name: Fetch Tags for GitVersion | ||
run: | | ||
git fetch --tags | ||
- name: Fetch master for GitVersion | ||
if: github.ref != 'refs/heads/master' | ||
run: git branch --create-reflog master origin/master | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: "5.3.x" | ||
|
||
- name: Use GitVersion | ||
id: gitversion # step id used as reference for output values | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- name: Setup DotNet SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: "3.1.101" | ||
dotnet-version: "3.1.x" | ||
|
||
- name: Build | ||
shell: pwsh | ||
run: ./ci-build.ps1 "${{steps.gitversion.outputs.nuGetVersion}}" "${{matrix.options.framework}}" | ||
if: startsWith(github.ref, 'refs/tags/') == false | ||
run: ./ci-build.ps1 "${{matrix.options.framework}}" | ||
|
||
- name: Test | ||
shell: pwsh | ||
|
@@ -112,31 +96,14 @@ jobs: | |
git fetch --prune --unshallow | ||
git submodule -q update --init --recursive | ||
- name: Fetch Tags for GitVersion | ||
run: | | ||
git fetch --tags | ||
- name: Fetch master for GitVersion | ||
if: github.ref != 'refs/heads/master' | ||
run: git branch --create-reflog master origin/master | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: "5.3.x" | ||
|
||
- name: Use GitVersion | ||
id: gitversion # step id used as reference for output values | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- name: Setup DotNet SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: "3.1.101" | ||
dotnet-version: "3.1.x" | ||
|
||
- name: Pack | ||
shell: pwsh | ||
run: ./ci-pack.ps1 "${{steps.gitversion.outputs.nuGetVersion}}" | ||
run: ./ci-pack.ps1 | ||
|
||
- name: Publish to MyGet | ||
shell: pwsh | ||
|
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
param( | ||
[Parameter(Mandatory, Position = 0)] | ||
[string]$version | ||
) | ||
|
||
dotnet clean -c Release | ||
|
||
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY" | ||
|
||
# Building for packing and publishing. | ||
dotnet pack -c Release --output "$PSScriptRoot/artifacts" /p:packageversion=$version /p:RepositoryUrl=$repositoryUrl | ||
dotnet pack -c Release --output "$PSScriptRoot/artifacts" /p:RepositoryUrl=$repositoryUrl |
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