Skip to content

Commit

Permalink
Publish using the api-key option (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnstoppableMango authored May 1, 2024
1 parent a0bda36 commit de34172
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,12 @@ jobs:
--api-key ${{ secrets.NUGET_API_KEY }} \
--skip-duplicate
- name: Authenticate to GitHub Packages
if: matrix.source == 'github'
run: |
dotnet nuget add source \
--username ${{ github.repository_owner }} \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github \
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: Publish to GitHub Packages
if: matrix.source == 'github'
run: |
dotnet nuget push "$PACKAGE_PATTERN" \
--source ${{ matrix.source }} \
--source https://nuget.pkg.github.com/${{ github.repository_owner }} \
--api-key ${{ secrets.GITHUB_TOKEN }} \
--skip-duplicate
build-go:
Expand Down
7 changes: 7 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<Project>

<PropertyGroup>
<Authors>UnstoppableMango</Authors>
<RepositoryUrl>https://github.com/UnstoppableMango/tdl</RepositoryUrl>
</PropertyGroup>

<PropertyGroup>
<ProtoRoot>$(MSBuildThisFileDirectory)/proto</ProtoRoot>
<ProtoPkgDir>$(ProtoRoot)/unmango/dev/tdl</ProtoPkgDir>
<ProtoDir>$(ProtoPkgDir)/v1alpha1</ProtoDir>
</PropertyGroup>

</Project>

0 comments on commit de34172

Please sign in to comment.