Skip to content

Update BEMCheckBox references and add badges #52

Update BEMCheckBox references and add badges

Update BEMCheckBox references and add badges #52

Workflow file for this run

name: CI
on: [push]
jobs:
build:
name: Build Job
runs-on: macos-12
defaults:
run:
working-directory: Source
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Required for Calculate Version step (e.g. GitVersion)
# Required by GitVersion
- name: Install .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.10.2
with:
versionSpec: '5.12.0'
- name: Generate Version Info using GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.10.2
with:
updateAssemblyInfo: true
- name: NuGet
run: nuget restore
- name: Debug Build for Example Program
run: msbuild /t:Rebuild /p:Configuration=Debug /p:Platform=iPhoneSimulator
- name: Release Build
run: msbuild /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"
- name: Create NuGet Package
run: nuget pack SaturdayMP.XPlugins.iOS.BEMCheckBox.nuspec -properties Configuration=Release -Version ${{ steps.gitversion.outputs.nuGetVersionV2 }}
- name: Publish to MyGet
run: |
nuget setApiKey ${{ secrets.MYGET_API_KEY }} -Source https://www.myget.org/F/saturdaymp/api/v3/index.json
nuget push SaturdayMP.XPlugins.iOS.BEMCheckBox.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg -Source https://www.myget.org/F/saturdaymp/api/v3/index.json