Skip to content

Increase to 30 items in the pagination parameters class. #30

Increase to 30 items in the pagination parameters class.

Increase to 30 items in the pagination parameters class. #30

Workflow file for this run

name: Publish NuGet
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build ./src/Initium/Initium.csproj --configuration Release
- name: Bump Version
run: |
chmod +x "${GITHUB_WORKSPACE}/.github/bump.sh"
"${GITHUB_WORKSPACE}/.github/bump.sh"
- name: Pack NuGet Package
run: dotnet pack ./src/Initium/Initium.csproj --configuration Release --output ./nupkg
- name: Push to NuGet
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push "./nupkg/*.nupkg" --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Notify Slack
if: success()
env:
SLACK_WEBHOOKS_URL: ${{ secrets.SLACK_WEBHOOKS_URL }}
run: |
curl -X POST -H 'Content-type: application/json' --data '{
"text": "📦 *Initium* package *v${{ env.new_build }}* has been published to NuGet Packages."
}' $SLACK_WEBHOOKS_URL
- name: Push to GitHub NuGet
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push "./nupkg/*.nupkg" --api-key $GITHUB_TOKEN --source "https://nuget.pkg.github.com/imclint21/index.json" --skip-duplicate
- name: Remove Packages
run: rm -rf *.nupkg ./nupkg
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Bump Version