Release Version 0.6.1 (#205)

This commit is contained in:
Kamron Batman 2020-08-30 23:15:47 -07:00 committed by GitHub
parent 133a1c4b56
commit 40f88d98e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 66 additions and 0 deletions

65
.github/create-release.yml vendored Normal file
View file

@ -0,0 +1,65 @@
name: Create Release
on:
push:
branches:
- master
jobs:
build:
if: "contains(github.event.head_commit.message, 'Release')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.401
- name: Get Project Version
id: get-version
uses: mavrosxristoforos/get-xml-info@1.0
with:
xml-file: 'Directory.Build.Props'
xpath: '//Project/PropertyGroup/Version'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get-version.output.info }}
release_name: ${{ steps.get-version.output.info }}
draft: false
prerelease: false
- name: Build Windows
run: ./publish.cmd win core Release
- name: Create Windows Artifact
run: rm -rf ./Projects/*/bin && rm -rf ./Projects/*/obj && zip -r modernuo-win-x64-${{ steps.get-version.output.info }}.zip ./*
- name: Upload Windows Build
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./modernuo-win-x64-${{ steps.get-version.output.info }}.zip
asset_name: modernuo-win-x64-${{ steps.get-version.output.info }}.zip
asset_content_type: application/zip
- name: Clean Windows Build
run: rm modernuo-win-x64-${{ steps.get-version.output.info }}.zip
- name: Build Ubuntu 18 LTS
run: ./publish.cmd ubuntu.18.04 core Release
- name: Create Ubuntu 18 LTS Artifact
run: rm -rf ./Projects/*/bin && rm -rf ./Projects/*/obj && zip -r ubuntu.18.04-x64-${{ steps.get-version.output.info }}.zip ./*
- name: Upload Ubuntu 18 LTS Build
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./modernuo-ubuntu.18.04-x64-${{ steps.get-version.output.info }}.zip
asset_name: modernuo-ubuntu.18.04-x64-${{ steps.get-version.output.info }}.zip
asset_content_type: application/zip
- name: Clean Ubuntu 18 LTS Build
run: rm modernuo-ubuntu.18.04-x64-${{ steps.get-version.output.info }}.zip

View file

@ -7,6 +7,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>
<Version>0.6.1</Version>
<LangVersion>8.0</LangVersion>
<DefineConstants Condition="$(RuntimeIdentifier.StartsWith('win'))">WINDOWS</DefineConstants>
<DefineConstants Condition="$(RuntimeIdentifier.StartsWith(`win`)) != true">UNIX</DefineConstants>

0
publish.cmd Normal file → Executable file
View file

0
publish.sh Normal file → Executable file
View file