mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: Netch CI
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*.*'
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: MSBuild
|
|
uses: microsoft/setup-msbuild@v1.0.2
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Build
|
|
shell: pwsh
|
|
run: .\BUILD.ps1
|
|
|
|
- name: Package
|
|
shell: pwsh
|
|
run: |
|
|
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
|
7z a -mx9 C:\builtfiles\Netch.7z .\Netch\bin\Publish\
|
|
7z rn C:\builtfiles\Netch.7z Publish Netch
|
|
echo "Netch_SHA256=$(.\sha256.ps1 C:\builtfiles\Netch.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
echo "Netch_EXE_SHA256=$(.\sha256.ps1 Netch\bin\Publish\Netch.exe)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
with:
|
|
prerelease: ${{ contains(github.ref, '-') }}
|
|
draft: false
|
|
files: |
|
|
C:\builtfiles\Netch.7z
|
|
body: |
|
|
[](https://t.me/Netch) [](https://t.me/Netch_Discuss_Group)
|
|
|
|
## 更新日志
|
|
* 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新
|
|
|
|
## 校验和
|
|
| 文件名 | SHA256 |
|
|
| :- | :- |
|
|
| Netch.7z | ${{ env.Netch_SHA256 }} |
|