-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: MoLiPlugin Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'MoLiPlugin-v*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.100 | ||
|
||
- name: Build | ||
run: | | ||
cd ./plugins/MoLiPlugin | ||
dotnet build --configuration Release | ||
ls | ||
ls ./bin/Release/ | ||
- name: Zip the Build | ||
run: | | ||
cd ./plugins/MoLiPlugin/bin/Release/net6.0 | ||
zip -r MoLiPlugin-net6.0.zip * | ||
cd ../../../../../ | ||
mv ./plugins/MoLiPlugin/bin/Release/net6.0/*.zip ./ | ||
- name: Create Release and Upload Release Asset | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
#tag_name: ${{ github.ref }} | ||
#name: ${{ github.ref }} | ||
body: TODO New Release. | ||
#body_path: CHANGELOG.txt | ||
draft: false | ||
prerelease: false | ||
files: | | ||
MoLiPlugin-net6.0.zip | ||
LICENSE | ||
README.md |