2023-01-09 11:14:04 +00:00
|
|
|
name: Semantic Release
|
|
|
|
|
|
|
|
on:
|
2023-01-20 07:31:13 +00:00
|
|
|
workflow_dispatch:
|
2023-01-09 11:14:04 +00:00
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
SemanticRelease:
|
|
|
|
name: Semantic Release
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-01-29 06:56:47 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-01-09 11:14:04 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup dotnet
|
2024-04-13 13:37:06 +00:00
|
|
|
uses: actions/setup-dotnet@v4
|
2023-01-09 11:14:04 +00:00
|
|
|
with:
|
|
|
|
dotnet-version: '3.1.100'
|
|
|
|
|
|
|
|
# Installs nuget package from https://www.nuget.org/packages/unity-packer
|
2024-04-14 15:41:25 +00:00
|
|
|
# Used by Semantic Release to create the Unity package.
|
2023-01-09 11:14:04 +00:00
|
|
|
- name: Install unity-packer
|
|
|
|
run: dotnet tool install -g unity-packer
|
|
|
|
|
2024-04-14 15:41:25 +00:00
|
|
|
# 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
|
2023-01-09 11:14:04 +00:00
|
|
|
- name: Release
|
2023-11-14 14:38:21 +00:00
|
|
|
uses: cycjimmy/semantic-release-action@v4
|
2023-01-09 11:14:04 +00:00
|
|
|
with:
|
|
|
|
extra_plugins: |
|
|
|
|
@semantic-release/exec
|
|
|
|
@semantic-release/changelog
|
|
|
|
@semantic-release/git
|
|
|
|
branch: master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|