mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
810e066423
* Update Semantic Release Improved CI for producing release packages - Generates and includes version.txt - Extended types for releases and release notes - unity-packer is executed by semantic-release - releaserc fully rewritten with comments * fixed typos
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Semantic Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
SemanticRelease:
|
|
name: Semantic Release
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '3.1.100'
|
|
|
|
# Installs nuget package from https://www.nuget.org/packages/unity-packer
|
|
# Used by Semantic Release to create the Unity package.
|
|
- name: Install unity-packer
|
|
run: dotnet tool install -g unity-packer
|
|
|
|
# Install conventional-changelog-conventionalcommits
|
|
# Required for Semantic Release Notes Generator
|
|
- name: Install conventional-changelog-conventionalcommits
|
|
run: npm i -D conventional-changelog-conventionalcommits
|
|
|
|
# See .releaserc.yml for configuration of semantic-release
|
|
- name: Release
|
|
uses: cycjimmy/semantic-release-action@v4
|
|
with:
|
|
extra_plugins: |
|
|
@semantic-release/exec
|
|
@semantic-release/changelog
|
|
@semantic-release/git
|
|
branch: master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|