Skip to content

Commit

Permalink
Configured release build
Browse files Browse the repository at this point in the history
  • Loading branch information
apfohl committed Mar 5, 2021
1 parent 15f7bd6 commit 90b969a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: Release

on: [workflow_dispatch]
on:
push:
tags:
- '*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Pack
run: dotnet pack --configuration Release
run: |
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]}"
dotnet pack -c Release -p:PackageVersion=$VERSION
- name: Add Nuget source
run: dotnet nuget add source https://nuget.pkg.github.com/bridgefield/index.json -n github -u bridgefield -p ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
- name: Push
run: dotnet nuget push **\*.nupkg -s nuget.org -k ${{ secrets.NUGET_ORG_API_KEY }}
run: dotnet nuget push **/*.nupkg -s github

0 comments on commit 90b969a

Please sign in to comment.