Skip to content

Merge pull request #36 from sillsdev/add-useExecutingAssembly-flag #13

Merge pull request #36 from sillsdev/add-useExecutingAssembly-flag

Merge pull request #36 from sillsdev/add-useExecutingAssembly-flag #13

Workflow file for this run

name: Publish To Nuget.org on pushed version tag
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
publish:
name: build, pack & publish
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: build, test, & pack
run: dotnet pack -o .
# When triggered on a tag push a GITHUB_REF env variable is set that confuses
# GitVersion and gives us versions that look like v2.0.0-tags-v2-0-0.1
# If we set GITHUB_REF to refs/heads/master will make it behave as expected
env:
GITHUB_REF: refs/heads/master
- name: Push to Nuget
run: |
dotnet nuget push SIL.DesktopAnalytics.*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.SILLSDEV_PUBLISH_NUGET_ORG}} --skip-duplicate
dotnet nuget push SIL.DesktopAnalytics.*.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.SILLSDEV_PUBLISH_NUGET_ORG}} --skip-duplicate