Skip to content

Commit

Permalink
Create promote_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
colbylwilliams committed Mar 24, 2020
1 parent bdd5b1a commit 2750acb
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/promote_release.yml
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

0 comments on commit 2750acb

Please sign in to comment.