Skip to content

Clean up release.yml #43

Clean up release.yml

Clean up release.yml #43

Workflow file for this run

name: release
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
steps:
- name: Install GitVersion
uses: GitTools/actions/gitversion/setup@v0.9.11
with:
versionSpec: '5.5.0'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run GitVersion
id: gitversion
uses: GitTools/actions/gitversion/execute@v0.9.11
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: Pack 7ZSfx installer
run: .\Tools\NukeBuild\build.cmd Test Pack7ZSfx
- name: Upload 7ZSfx installer to github release
uses: softprops/action-gh-release@v1
with:
files: ./Artifacts/ImoutoRebirth-*.*
body: ImoutoRebirth-*.exe is a self-extracting 7z archive. You can use it directly, or download the 7z archive itself. Please read the installation instructions in the [README](https://github.com/ImoutoChan/ImoutoRebirth#installation) for more information.
name: ImoutoRebirth ${{ steps.gitversion.outputs.majorMinorPatch }}