Skip to content

MintPlayer prefix #24

MintPlayer prefix

MintPlayer prefix #24

name: publish-release
on:
push:
branches:
- 'release/**'
jobs:
build:
name: publish-release
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.100
# Authenticates packages to push to GPR
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: '%NUGET_AUTH_TOKEN%'
- name: Install dependencies
run: dotnet restore
env:
NUGET_AUTH_TOKEN: ${{ github.token }}
- name: Build
run: dotnet build --configuration Debug --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack --no-build --configuration Debug
- name: PushNuget
run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.PUBLISH_TO_NUGET_ORG }} --skip-duplicate
- name: PushGithub
run: dotnet nuget push "**/*.nupkg" --no-symbols --skip-duplicate
env:
NUGET_AUTH_TOKEN: ${{ github.token }}