Skip to content

Commit

Permalink
Moved test step back to before pack step, renamed pack step to build …
Browse files Browse the repository at this point in the history
…& pack, fixed wildcard path to nupkg files so they include the JKMP. prefix
  • Loading branch information
Skippeh committed Nov 17, 2021
1 parent f358a63 commit db14f27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Pack Myra.MonoGame
- name: Test
run: dotnet test build\Myra.MonoGame.sln --verbosity normal
- name: Build & Pack Myra.MonoGame
run: dotnet pack build\Myra.MonoGame.sln --configuration Release --version-suffix ${{env.VERSION_SUFFIX}}
- name: Pack Myra.Stride
- name: Build & Pack Myra.Stride
run: dotnet pack build\Myra.Stride.sln --configuration Release --version-suffix ${{env.VERSION_SUFFIX}}
- name: Pack Myra.PlatformAgnostic
- name: Build & Pack Myra.PlatformAgnostic
run: dotnet pack build\Myra.PlatformAgnostic.sln --configuration Release --version-suffix ${{env.VERSION_SUFFIX}}
- name: Test
run: dotnet test build\Myra.MonoGame.sln --verbosity normal
- name: Build Binary Distribution
shell: pwsh
run: ./buildBinaryDistribution.ps1 ${{env.VERSION}}
Expand All @@ -48,8 +48,8 @@ jobs:
path: Myra.${{env.VERSION}}.zip
retention-days: 30
- name: Publish Myra.MonoGame to github
run: dotnet nuget push src\Myra\bin\MonoGame\Release\Myra.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
run: dotnet nuget push src\Myra\bin\MonoGame\Release\JKMP.Myra.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
- name: Publish Myra.Stride to github
run: dotnet nuget push src\Myra\bin\Stride\Release\Myra.Stride.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
run: dotnet nuget push src\Myra\bin\Stride\Release\JKMP.Myra.Stride.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
- name: Publish Myra.PlatformAgnostic to github
run: dotnet nuget push src\Myra\bin\PlatformAgnostic\Release\Myra.PlatformAgnostic.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
run: dotnet nuget push src\Myra\bin\PlatformAgnostic\Release\JKMP.Myra.PlatformAgnostic.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
16 changes: 8 additions & 8 deletions .github/workflows/build-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Pack Myra.MonoGame
- name: Test
run: dotnet test build\Myra.MonoGame.sln --verbosity normal
- name: Build & Pack Myra.MonoGame
run: dotnet pack build\Myra.MonoGame.sln --configuration Release
- name: Pack Myra.Stride
- name: Build & Pack Myra.Stride
run: dotnet pack build\Myra.Stride.sln --configuration Release
- name: Pack Myra.PlatformAgnostic
- name: Build & Pack Myra.PlatformAgnostic
run: dotnet pack build\Myra.PlatformAgnostic.sln --configuration Release
- name: Test
run: dotnet test build\Myra.MonoGame.sln --verbosity normal
- name: Build Binary Distribution
shell: pwsh
run: ./buildBinaryDistribution.ps1 ${{env.VERSION}}
- name: Publish Myra.MonoGame to github
run: dotnet nuget push src\Myra\bin\MonoGame\Release\Myra.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
run: dotnet nuget push src\Myra\bin\MonoGame\Release\JKMP.Myra.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
- name: Publish Myra.Stride to github
run: dotnet nuget push src\Myra\bin\Stride\Release\Myra.Stride.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
run: dotnet nuget push src\Myra\bin\Stride\Release\JKMP.Myra.Stride.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
- name: Publish Myra.PlatformAgnostic to github
run: dotnet nuget push src\Myra\bin\PlatformAgnostic\Release\Myra.PlatformAgnostic.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
run: dotnet nuget push src\Myra\bin\PlatformAgnostic\Release\JKMP.Myra.PlatformAgnostic.*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{secrets.GITHUB_TOKEN}} --skip-duplicate
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit db14f27

Please sign in to comment.