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
|
2024-05-05 09:57:06 +00:00
|
|
|
permissions:
|
|
|
|
contents: write # to be able to publish a GitHub release
|
2023-01-09 11:14:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-05-05 09:32:20 +00:00
|
|
|
- name: Setup .NET
|
2024-04-13 13:37:06 +00:00
|
|
|
uses: actions/setup-dotnet@v4
|
2023-01-09 11:14:04 +00:00
|
|
|
with:
|
2024-06-18 20:36:11 +00:00
|
|
|
dotnet-version: '8.0.x'
|
2023-01-09 11:14:04 +00:00
|
|
|
|
2024-06-18 20:36:11 +00:00
|
|
|
- name: Install dotnet-script
|
|
|
|
run: |
|
|
|
|
dotnet tool install -g dotnet-script
|
|
|
|
dotnet script --version
|
2023-01-09 11:14:04 +00:00
|
|
|
|
2024-05-05 09:32:20 +00:00
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-06-12 23:51:39 +00:00
|
|
|
node-version: '*'
|
2024-05-05 09:32:20 +00:00
|
|
|
|
2024-04-14 15:41:25 +00:00
|
|
|
- name: Install conventional-changelog-conventionalcommits
|
|
|
|
run: npm i -D conventional-changelog-conventionalcommits
|
2024-05-05 09:32:20 +00:00
|
|
|
|
|
|
|
- name: Install Plugins
|
2024-05-05 13:32:32 +00:00
|
|
|
run: npm i -D @semantic-release/exec
|
2024-04-14 15:41:25 +00:00
|
|
|
|
2023-01-09 11:14:04 +00:00
|
|
|
- name: Release
|
2024-05-05 09:32:20 +00:00
|
|
|
run: npx semantic-release
|
2024-06-18 20:36:11 +00:00
|
|
|
--debug
|
2023-01-09 11:14:04 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2024-06-26 22:13:51 +00:00
|
|
|
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"
|