Mirror/.github/workflows/Semantic.yml
MrGadget 83629bcc67
chore(CI): Update Semantic to use UnityPack Script (#3840)
* UnityPack CSX

* fixed path

* try cmd

* try bash

* try script

* try prepareCmd

* Fix errors

* AddFilesRecursive extension

* dotnet 5 and dotnet-scriopt 1.1.0

* dotnet-script 1.5.0

* dotnet 8

* Environment.GetCommandLineArgs

* separate extension script

* typo

* Updated ArchiveExtension

* AddFilesRecursive without extension

* fix args iterator

* Deleted ArchiveExtension

* Removed commented code

* UnityPack: Methods in order

* MIT License

* Suppress Release Notes

* Added Console Logging

* fix: Test1

* Syntax

* Syntax

* log args

* fix: args parsing

* fix: More Logging plus version

* Syntax

* fix: Try fix paths

* fix: Reverse slashes in RootPath to match entry.Name

* fix: GetRelativePath use Path.GetTempPath

* fix: Use tempPath

* fix: Enable release notes

* Remove Hosting folder

* fix: Remove Edgegap

* Cleanup

* fix: Minified dependencies JSON and >=3.2.1 version for NewtonSoft

* fix: NewtonSoft v3.0.0
2024-06-18 16:36:11 -04:00

46 lines
1.0 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: '8.0.x'
- name: Install dotnet-script
run: |
dotnet tool install -g dotnet-script
dotnet script --version
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '*'
- 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
--debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}