Mirror/.github/workflows/Semantic.yml

44 lines
1010 B
YAML
Raw Normal View History

name: Semantic Release
on:
2023-01-20 07:31:13 +00:00
workflow_dispatch:
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
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
2024-05-05 09:32:20 +00:00
- 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
2024-05-05 09:32:20 +00:00
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '*'
2024-05-05 09:32:20 +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
- name: Release
2024-05-05 09:32:20 +00:00
run: npx semantic-release
--debug true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}