馃┕ fix create and return (accept 201 - created) #213
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: releases/* | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v1.8.1 | |
with: | |
dotnet-version: 7.0.x | |
- id: get-version | |
uses: actions/github-script@0.9.0 | |
with: | |
script: | | |
const branch = '${{github.ref}}'; | |
const id = branch.split('/').reverse()[0]; | |
core.setOutput('id', id); | |
- run: dotnet pack -p:PackageVersion=${{steps.get-version.outputs.id}} --output ${{github.workspace}} -c Release | |
- run: dotnet nuget push '*.nupkg' --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json | |