mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
3e52ef0deb
* Update activation.ylm * Added Semantic.yml * Added SonarQube.yml * Updated main.yml * Updated main.yml * SonarQube - container fixed * main.yml - disabled SonarQube for now - That's going to need a bit more work.
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Semantic Release
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
SemanticRelease:
|
|
name: Semantic Release
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Delete Tests
|
|
run: |
|
|
Remove-Item -Recurse -Force Assets\Mirror\Tests
|
|
Remove-Item -Recurse -Force Assets\Mirror\Tests.meta
|
|
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '3.1.100'
|
|
|
|
# Installs nuget package from https://www.nuget.org/packages/unity-packer
|
|
- name: Install unity-packer
|
|
run: dotnet tool install -g unity-packer
|
|
|
|
- name: Package
|
|
run: unity-packer pack Mirror.unitypackage Assets/Mirror Assets/Mirror Assets/ScriptTemplates Assets/ScriptTemplates LICENSE Assets/Mirror/LICENSE
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Mirror.unitypackage
|
|
path: Mirror.unitypackage
|
|
|
|
- name: Release
|
|
uses: cycjimmy/semantic-release-action@v3
|
|
with:
|
|
extra_plugins: |
|
|
@semantic-release/exec
|
|
@semantic-release/changelog
|
|
@semantic-release/git
|
|
branch: master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|