mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
name: Semantic Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
SemanticRelease:
|
|
name: Semantic Release
|
|
runs-on: windows-latest
|
|
permissions:
|
|
contents: write # to be able to publish a GitHub release
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '8.0.x'
|
|
|
|
- name: Install dotnet-script
|
|
run: |
|
|
dotnet tool install -g dotnet-script
|
|
dotnet script --version
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '*'
|
|
|
|
- name: Install conventional-changelog-conventionalcommits
|
|
run: npm i -D conventional-changelog-conventionalcommits
|
|
|
|
- name: Install Plugins
|
|
run: npm i -D @semantic-release/exec
|
|
|
|
- name: Release
|
|
run: npx semantic-release
|
|
--debug
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
UNITYPACK_OUTPUT: "Mirror.unitypackage"
|
|
# source and destination separated by space
|
|
# add more assets as separate env vars using the naming pattern
|
|
UNITYPACK_ASSET1: "Assets/Mirror Assets/Mirror"
|
|
UNITYPACK_ASSET2: "LICENSE Assets/Mirror/LICENSE"
|
|
# name and version separated by space
|
|
# add more dependencies as separate env vars using the naming pattern
|
|
UNITYPACK_DEPENDENCY1: "com.unity.nuget.newtonsoft-json 3.0.0"
|
|
# package names separated by space (only one for now)
|
|
UNITYPACK_TESTABLES: "com.unity.test-framework.performance"
|