Skip to content

Commit

Permalink
ci(moli4qqchannelplugin-release.yml): add
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Jan 12, 2023
1 parent 45b8dc4 commit 5fa6631
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/MoLi4QQChannelPlugin-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: MoLi4QQChannelPlugin Release

on:
push:
tags:
- 'MoLi4QQChannelPlugin-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/MoLi4QQChannelPlugin
dotnet build --configuration Release
ls
ls ./bin/Release/
ls ./bin/Release/net6.0/
- name: Zip the Build
run: |
cd ./plugins/MoLi4QQChannelPlugin/bin/Release/net6.0
zip -r MoLi4QQChannelPlugin-net6.0.zip *
cd ../../../../../
mv ./plugins/MoLi4QQChannelPlugin/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: |
MoLi4QQChannelPlugin-net6.0.zip
LICENSE
README.md

0 comments on commit 5fa6631

Please sign in to comment.