Skip to content

Commit

Permalink
Fix multi-line commands in publish.yaml (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
aradalvand authored Aug 16, 2023
1 parent 2a515d7 commit 8a5aa6f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- published

jobs:
# TODO: Have this depend on `test.yaml`
publish:
runs-on: ubuntu-latest

Expand All @@ -23,15 +22,15 @@ jobs:
# NOTE: As for the `${GITHUB_REF_NAME#v}` bit below, see https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables:~:text=branch%2D1.-,GITHUB_REF_NAME,-The%20short%20ref. We could've also done https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable but since we're using this value in a single place, we don't need to make it an environment variable.
run: |
dotnet pack \
--configuration Release
--output _nuget
--configuration Release \
--output _nuget \
-p:PackageVersion=${GITHUB_REF_NAME#v}
# TODO: Changelog?

- name: Push the package to NuGet
run: |
dotnet nuget push \
_nuget\*.nupkg
--source https://api.nuget.org/v3/index.json
_nuget/*.nupkg \
--source https://api.nuget.org/v3/index.json \
--api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit 8a5aa6f

Please sign in to comment.