mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 23:06:20 +00:00
Update build.yml
This commit is contained in:
parent
fe06145209
commit
699cf5ce36
1 changed files with 12 additions and 19 deletions
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -18,30 +18,23 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: 删除工作流运行
|
|
||||||
# uses: Mattraks/delete-workflow-runs@v2
|
|
||||||
# with:
|
|
||||||
# token: ${{ github.token }}
|
|
||||||
# repository: ${{ github.repository }}
|
|
||||||
# retain_days: 0
|
|
||||||
# keep_minimum_runs: 1
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd v2rayN &&
|
run: cd v2rayN && dotnet publish v2rayN.csproj -c Release -o ./bin
|
||||||
.\build.cs
|
|
||||||
|
|
||||||
# - name: Package
|
- name: List Output Files
|
||||||
# shell: pwsh
|
run: dir .\v2rayN\bin
|
||||||
# run: |
|
|
||||||
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
|
- name: Create Zip Archive
|
||||||
|
run: |
|
||||||
|
7z a v2rayN.zip .\v2rayN\bin\*
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: v2rayN
|
name: v2rayN
|
||||||
path: |
|
path: v2rayN.zip
|
||||||
.\v2rayN\v2rayN.zip
|
|
||||||
|
|
||||||
|
# Uncomment if release is needed
|
||||||
# - name: Release
|
# - name: Release
|
||||||
# uses: softprops/action-gh-release@v1
|
# uses: softprops/action-gh-release@v1
|
||||||
# env:
|
# env:
|
||||||
|
@ -50,7 +43,7 @@ jobs:
|
||||||
# prerelease: ${{ contains(github.ref, '-') }}
|
# prerelease: ${{ contains(github.ref, '-') }}
|
||||||
# draft: false
|
# draft: false
|
||||||
# files: |
|
# files: |
|
||||||
# .\v2rayN\v2rayN.zip
|
# v2rayN.zip
|
||||||
# body: |
|
# body: |
|
||||||
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
||||||
# ## Changelogs
|
# ## Changelogs
|
||||||
|
|
Loading…
Reference in a new issue