mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 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: '3.1.100'
|
|
|
|
- name: Install unity-packer
|
|
run: dotnet tool install -g unity-packer
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- 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
|
|
--plugins "@semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/exec,@semantic-release/github"
|
|
--debug true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|