-
Notifications
You must be signed in to change notification settings - Fork 22
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
bdd5b1a
commit 2750acb
Showing
1 changed file
with
45 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,45 @@ | ||
name: TeamCloud - Promote Release | ||
|
||
on: | ||
release: | ||
types: [ edited ] | ||
|
||
env: | ||
BUILD_CONFIGURATION: Release | ||
SOURCE_DIRECTORY: ./src | ||
|
||
jobs: | ||
|
||
build: | ||
if: '!github.event.release.prerelease' | ||
name: Promote Pre-release to Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# - name: Checkout Code | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Checkout Tags | ||
run: git fetch -t | ||
|
||
- name: Setup GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
|
||
- name: Execute GitVersion | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
# - name: Setup .NET Core | ||
# uses: actions/setup-dotnet@v1 | ||
# with: | ||
# dotnet-version: '3.1.101' | ||
|
||
# - name: Build and Package for Release | ||
# run: dotnet build -c ${{ env.BUILD_CONFIGURATION }} -p:VersionPrefix="${{ steps.gitversion.outputs.majorMinorPatch }}" -p:AssemblyVersion="${{ steps.gitversion.outputs.assemblySemVer }}" -p:FileVersion="${{ steps.gitversion.outputs.assemblySemFileVer }}" -p:IncludeSymbols=true | ||
# working-directory: ${{ env.SOURCE_DIRECTORY }} | ||
|
||
# - name: Publish NuGet Packages | ||
# run: dotnet nuget push **/*.nupkg --api-key '${{ secrets.MYGET_TOKEN }}' --source 'https://www.myget.org/F/teamcloud-dev/api/v2/package' --symbol-api-key '${{ secrets.MYGET_TOKEN }}' --symbol-source 'https://www.myget.org/F/teamcloud-dev/symbols/api/v2/package' --skip-duplicate |