Skip to content

test

test #62

Workflow file for this run

name: Build
on:
push:
paths:
- '**/*.cs'
- '**/*.csproj'
- '**/*.sln'
- '**/*.Build.props'
- '.github/workflows/build.yml'
- 'RisingV.*'
- 'RisingV.*/**'
workflow_dispatch:
inputs:
deploy_to_nuget:
description: "Deploy to NuGet"
required: false
default: false
type: boolean
create_prerelease:
description: "Create a prerelease"
required: false
default: false
type: boolean
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository (with submodules)
uses: actions/checkout@v4
with:
persist-credentials: true
fetch-depth: 0
submodules: recursive
token: ${{ secrets.RISINGV_PAT }}
- name: Check out RisingV.CI
uses: actions/checkout@v4
with:
repository: RisingV-Mods/RisingV.CI
path: RisingV.CI
token: ${{ secrets.RISINGV_PAT }}
- name: Run build (and optional NuGet deployment)
uses: ./RisingV.CI/.github/actions/build-and-release
with:
deploy_to_nuget: ${{ github.ref == 'refs/heads/main' && github.event.inputs.deploy_to_nuget }}
create_prerelease: ${{ github.ref == 'refs/heads/main' && github.event.inputs.create_prerelease }}
risingv_pat: ${{ secrets.RISINGV_PAT }}
nuget_key: ${{ secrets.RISINGV_NUGET_KEY }}