-
Notifications
You must be signed in to change notification settings - Fork 0
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
a0131d1
commit 5e5d560
Showing
1 changed file
with
68 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,68 @@ | ||
name: Release | ||
|
||
# Controls when the action will run. | ||
on: | ||
release: | ||
type: [published] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 5.0.x | ||
|
||
- name: Build | ||
run: dotnet build --no-restore | ||
working-directory: src/SimpleToggle | ||
package: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: Publish Core | ||
uses: brandedoutcast/[email protected] | ||
with: | ||
# Filepath of the project to be packaged, relative to root of repository | ||
PROJECT_FILE_PATH: /src/SimpleToggle/SimpleToggle.Core | ||
# NuGet package id, used for version detection & defaults to project name | ||
PACKAGE_NAME: SimpleToggle | ||
# Regex pattern to extract version info in a capturing group | ||
# VERSION_REGEX: # optional, default is ^\s*<Version>(.*)<\/Version>\s*$ | ||
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX | ||
VERSION_STATIC: ${{ steps.get_version.outputs.VERSION }} | ||
# Flag to toggle git tagging, enabled by default | ||
TAG_COMMIT: false | ||
# Format of the git tag, [*] gets replaced with actual version | ||
# TAG_FORMAT: # optional, default is v* | ||
# API key to authenticate with NuGet server | ||
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} | ||
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default | ||
INCLUDE_SYMBOLS: true | ||
|
||
- name: Publish AWS Source | ||
uses: brandedoutcast/[email protected] | ||
with: | ||
PROJECT_FILE_PATH: /src/SimpleToggle/SimpleToggle.Sources.AWS | ||
PACKAGE_NAME: SimpleToggle.AWS | ||
VERSION_STATIC: ${{ steps.get_version.outputs.VERSION }} | ||
TAG_COMMIT: false | ||
NUGET_KEY: ${{ secrets.NUGET_API_KEY }} | ||
INCLUDE_SYMBOLS: true |