Skip to content

Commit

Permalink
Merge pull request #15 from thefringeninja/nuggets
Browse files Browse the repository at this point in the history
Publish Nuget Packages to GitHub Package Registry
  • Loading branch information
James Geall authored May 15, 2020
2 parents ba19bbe + 18679b8 commit effd596
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"commands": [
"dotnet-retire"
]
},
"gpr": {
"version": "0.1.122",
"commands": [
"gpr"
]
}
}
}
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- shell: bash
run: |
git fetch --prune --unshallow
- name: Github Registry Docker Login
uses: azure/docker-login@v1
with:
Expand Down Expand Up @@ -91,26 +92,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- shell: bash
run: |
git fetch --prune --unshallow
- name: Setup Dotnet
uses: actions/[email protected]
with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
- name: Calculate Version
shell: bash
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
dotnet tool restore
version=$(dotnet tool run minver)
echo "::set-env name=VERSION::${version}"
- name: Dotnet Pack
shell: bash
run: |
dotnet pack --configuration=Release --output=./packages /p:Version=${{ env.VERSION }} \
dotnet tool restore
dotnet pack --configuration=Release --output=./packages /p:Version=$(dotnet tool run minver) \
/p:NoWarn=NU5105 \
/p:RepositoryUrl=https://github.com/${{ github.repository }} \
/p:RepositoryUrl=https://github.com/EventStore/EventStore-Client-Dotnet \
/p:RepositoryType=git
- name: Publish Artifacts
uses: actions/upload-artifact@v1
with:
path: packages
name: nuget-packages
- name: Dotnet Push
shell: bash
if: github.event_name == 'push'
run: |
find . -name "*.nupkg" | xargs -n1 dotnet tool run gpr -- push --api-key=${{ secrets.github_token }}
Binary file added ouro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Link="protos/$(ESProto)"/>
</ItemGroup>
<PropertyGroup>
<PackageIconUrl>ouro.svg</PackageIconUrl>
<PackageIconUrl>ouro.png</PackageIconUrl>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageProjectUrl>https://eventstore.com</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand All @@ -25,7 +25,7 @@
</PropertyGroup>
<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="\"/>
<None Include="..\..\ouro.svg" Pack="true" PackagePath="\"/>
<None Include="..\..\ouro.png" Pack="true" PackagePath="\"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="4.0.0">
Expand Down

0 comments on commit effd596

Please sign in to comment.