Skip to content

v2.5.0

v2.5.0 #21

Workflow file for this run

name: Nuget Package Deploy
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v3
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.10.2
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/execute@v0.10.2
- run: |
echo "NuGetVersionV2: ${{ steps.gitversion.outputs.nuGetVersionV2 }}"
echo "NuGetPreReleaseTagV2 (not used): ${{ steps.gitversion.outputs.CommitsSinceVersionSourcePadded }}"
- name: Pack with .Net Core
run: dotnet pack --configuration Release --output nuget-packages -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }} -p:ContinuousIntegrationBuild=true
- uses: actions/upload-artifact@v3
with:
name: Nuget-packages-${{ steps.gitversion.outputs.nuGetVersionV2 }}
path: nuget-packages
- name: Publish Apple.Receipt.Models package to Nuget
run: dotnet nuget push 'nuget-packages/Apple.Receipt.Models.*.nupkg' --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: Publish Apple.Receipt.Parser package to Nuget
run: dotnet nuget push 'nuget-packages/Apple.Receipt.Parser.*.nupkg' --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: Publish Apple.Receipt.Verificator package to Nuget
run: dotnet nuget push 'nuget-packages/Apple.Receipt.Verificator.*.nupkg' --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json