* Removed Roadmap
The Roadmap seems to have been initially added to show the plans to switch to an FNA fork and act as a bridge for katabasis.  This is no longer the case for this repository as it will remain focused at the moment on MonoGame support only.

* Added new note at top of readme

* updated information for installing nuget

* Made using content pipeline extensions a section and not a quote

* Removed information about MyGet feed

* Removed patreon from readme

* Update License

* renamed master branch to main

* Remove community forum link
MonoGame is closing the community forums in favor of discord and github discussions

* Update workflows
This commit is contained in:
Christopher Whitley
2024-05-20 02:12:43 -04:00
committed by GitHub
parent 0a17af4829
commit 9a7ce46635
7 changed files with 64 additions and 153 deletions
@@ -3,44 +3,42 @@
### Clones the `develop` branch and performs a build, test, then pack of the
### Monogame.Extended source code. Once the build job is finished, the deploy
### job will upload the nupkg files created to the MonoGame.Extended GitHub
### and NuGet sources.
###
### - Only runs on a push to the `develop` branch
### - Sets the IS_PRERELASE and BUILD_NUMBER environment variables which are
### picked up in the Directory.Build.props file to set the version suffix
### so the packages are build as prerelease packages.
################################################################################
name: "Build MonoGame.Extended (Develop)"
name: "Create Release"
on:
push:
branches: develop
workflow_dispatch:
inputs:
prerelease:
description: 'Is this a prerelease?'
required: true
default: 'true'
jobs:
build:
name: "Build MonoGame.Extended"
runs-on: ubuntu-latest
env:
IS_PRERELEASE: true
BUILD_NUMBER: ${{ github.run_number }}
IS_PRERELEASE: ${{ inputs.prerelease == 'true' }}
BUILD_NUMBER: ${{ inputs.prerelease == 'true' && github.run_number || '' }}
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
ref: develop
- name: Setup DotNet
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Test MonoGame.Extended
run: dotnet test --nologo --verbosity minimal --configuration Release
- name: Build MonoGame.Extended
run: dotnet build --nologo --verbosity minimal --configuration Release
- name: Test MonoGame.Extended
run: dotnet test --nologo --verbosity minimal --configuration Release
- name: Pack MonoGame.Extended
run: dotnet pack --nologo --verbosity minimal --configuration Release
@@ -50,25 +48,27 @@ jobs:
name: build-artifacts
path: ./.artifacts/source/package/release/*.nupkg
deploy:
name: "Deploy NuGets"
runs-on: ubuntu-latest
needs: [ build ]
permissions:
packages: write
contents: write
deploy-job:
name: "Deploy Nugets"
runs-on: ubuntu-latest
needs: [build]
permissions:
packages: write
contents: write
steps:
- name: "Download Artifacts"
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./.artifacts
steps:
- name: "Download Artifacts For Deploy"
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./.artifacts
- name: "Push Packages"
run: |
PACKAGES=(".artifacts/*.nupkg")
for PACKAGE in "${PACKAGES[@]}"; do
dotnet nuget push "$PACKAGE" --source "https://api.nuget.org/v3/index.json" --skip-duplicate --api-key "${{ secrets.NUGET_ACCESS_TOKEN }}"
done
- name: "Push Packages"
env:
SOURCE_URL: ${{ 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")
for PACKAGE in "${PACKAGES[@]}"; do
dotnet nuget push "$PACKAGE" --source "$SOURCE_URL" --skip-duplicate --api-key "$API_KEY"
done
-70
View File
@@ -1,70 +0,0 @@
################################################################################
### Build MonoGame.Extended (Release)
### Clones the `main` branch and performs a build, test, then pack of the
### Monogame.Extended source code. Once the build job is finished, the deploy
### job will upload the nupkg files created to the MonoGame.Extended NuGet
### source.
###
### - Only runs when there is a new version release tag created.
################################################################################
name: "Build MonoGame.Extended (Release)"
on:
push:
tags:
- 'v*'
jobs:
build:
name: "Build MonoGame.Extended"
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
ref: main
- name: Setup DotNet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Test MonoGame.Extended
run: dotnet test --nologo --verbosity minimal --configuration Release
- name: Build MonoGame.Extended
run: dotnet build --nologo --verbosity minimal --configuration Release
- name: Pack MonoGame.Extended
run: dotnet pack --nologo --verbosity minimal --configuration Release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ./.artifacts/source/package/release/*.nupkg
deploy-job:
name: "Deploy Nugets"
runs-on: ubuntu-latest
needs: [build]
permissions:
packages: write
contents: write
steps:
- name: "Download Artifacts For Deploy"
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: ./.artifacts
- name: "Push Packages"
run: |
PACKAGES=(".artifacts/*.nupkg")
for PACKAGE in "${PACKAGES[@]}"; do
dotnet nuget push "$PACKAGE" --source "github" --skip-duplicate --api-key "${{ env.GITHUB_TOKEN }}"
dotnet nuget push "$PACKAGE" --source "https://api.nuget.org/v3/index.json" --skip-duplicate --api-key "${{ secrets.NUGET_ACCESS_TOKEN }}"
done