Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional input parameters #866

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@ on:
description: 'Is this a prerelease?'
required: true
default: 'true'
build-number:
description: |
Optional build number for when you need to manually specify it.
Otherwise the GitHub Run Number is used.
required: false
nuget-source:
description: The source url to publish the NuGet packages too
required: false

jobs:
build:
name: "Build MonoGame.Extended"
runs-on: ubuntu-latest
env:
IS_PRERELEASE: ${{ inputs.prerelease == 'true' }}
BUILD_NUMBER: ${{ inputs.prerelease == 'true' && github.run_number || '' }}
BUILD_NUMBER: ${{ inputs.build-number || (inputs.prerelease == 'true' && github.run_number || '' )}}

steps:
- name: Clone Repository
Expand Down Expand Up @@ -65,7 +73,7 @@ jobs:

- name: "Push Packages"
env:
SOURCE_URL: ${{ inputs.prerelease == 'true' && 'https://nuget.pkg.github.com/craftworkgames/index.json' || 'https://api.nuget.org/v3/index.json' }}
SOURCE_URL: ${{ inputs.nuget-source || (inputs.prerelease == 'true' && 'https://nuget.pkg.github.com/craftworkgames/index.json') || 'https://api.nuget.org/v3/index.json' }}
API_KEY: ${{ inputs.prerelease == 'true' && secrets.GITHUB_TOKEN || secrets.NUGET_ACCESS_TOKEN }}
run: |
PACKAGES=(".artifacts/*.nupkg")
Expand Down
Loading