Try softprops/action-gh-release@v1 #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------ | |
# <auto-generated> | |
# | |
# This code was generated. | |
# | |
# - To turn off auto-generation set: | |
# | |
# [CustomBuildCmdPathGitHubActions (AutoGenerate = false)] | |
# | |
# - To trigger manual generation invoke: | |
# | |
# nuke --generate-configuration GitHubActions_release --host GitHubActions | |
# | |
# </auto-generated> | |
# ------------------------------------------------------------------------------ | |
name: release | |
on: | |
push: | |
tags: | |
- '*' | |
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: Create github release | |
uses: actions/create-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: false | |
release_name: ${{ steps.gitversion.outputs.majorMinorPatch }} | |
tag_name: ${{ github.ref }} | |
body: ImoutoRebirth.exe is self extracting 7z archive. Read installation instructions in README.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASES_TOKEN }} | |
# - name: Upload 7ZSfx installer to github release | |
# uses: actions/upload-release-asset@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.RELEASES_TOKEN }} | |
# with: | |
# upload_url: ${{ steps.create_release.outputs.upload_url }} | |
# asset_path: ./Artifacts/ImoutoRebirth-*.* | |
# asset_content_type: application/octet-stream | |
- name: RUpload 7ZSfx installer to github release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./Artifacts/ImoutoRebirth-*.* |