mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 14:56:19 +00:00
Update build.yml
This commit is contained in:
parent
699cf5ce36
commit
eec9a499e6
1 changed files with 5 additions and 29 deletions
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
|
@ -8,46 +8,22 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
configuration: [Release]
|
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build
|
- name: Build v2rayN
|
||||||
run: cd v2rayN && dotnet publish v2rayN.csproj -c Release -o ./bin
|
run: |
|
||||||
|
cd v2rayN
|
||||||
|
dotnet publish v2rayN.csproj -c Release -o ./bin
|
||||||
|
|
||||||
- name: List Output Files
|
- name: List Output Files
|
||||||
run: dir .\v2rayN\bin
|
run: dir .\v2rayN\bin
|
||||||
|
|
||||||
- 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: v2rayN.zip
|
path: .\v2rayN\bin\*
|
||||||
|
|
||||||
# Uncomment if release is needed
|
|
||||||
# - name: Release
|
|
||||||
# uses: softprops/action-gh-release@v1
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
# with:
|
|
||||||
# prerelease: ${{ contains(github.ref, '-') }}
|
|
||||||
# draft: false
|
|
||||||
# files: |
|
|
||||||
# v2rayN.zip
|
|
||||||
# body: |
|
|
||||||
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
|
||||||
# ## Changelogs
|
|
||||||
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon
|
|
||||||
|
|
||||||
# ## 更新日志
|
|
||||||
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新
|
|
||||||
|
|
Loading…
Reference in a new issue