Update build.yml

This commit is contained in:
DecorativeFamily 2024-11-14 12:38:33 +03:30 committed by GitHub
parent 3a59c0c6c3
commit fe06145209
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,31 +18,30 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build v2rayN # - name: 删除工作流运行
run: | # uses: Mattraks/delete-workflow-runs@v2
cd v2rayN && .\build.cs # with:
dotnet publish v2rayN.csproj -c Release -r win-x64 --self-contained false -p:PublishReadyToRun=false -p:PublishSingleFile=true -o ./bin/win-x64 # token: ${{ github.token }}
# repository: ${{ github.repository }}
# retain_days: 0
# keep_minimum_runs: 1
- name: Build v2rayN.Desktop - name: Build
run: | run: cd v2rayN &&
cd v2rayN Desktop && .\build.cs .\build.cs
dotnet publish v2rayN.Desktop.csproj -c Release -r linux-x64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o ./bin/linux-x64
# - name: Package
# Optional cleanup of .pdb files if needed # shell: pwsh
- name: Clean up PDB files # run: |
run: | # 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
rm -f ./bin/win-x64/*.pdb
rm -f ./bin/linux-x64/*.pdb
- 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: |
./bin/win-x64/v2rayN.zip .\v2rayN\v2rayN.zip
./bin/linux-x64/v2rayN.zip
# Uncomment to create a release on GitHub after building
# - name: Release # - name: Release
# uses: softprops/action-gh-release@v1 # uses: softprops/action-gh-release@v1
# env: # env:
@ -51,8 +50,7 @@ jobs:
# prerelease: ${{ contains(github.ref, '-') }} # prerelease: ${{ contains(github.ref, '-') }}
# draft: false # draft: false
# files: | # files: |
# ./bin/win-x64/v2rayN.zip # .\v2rayN\v2rayN.zip
# ./bin/linux-x64/v2rayN.zip
# body: | # body: |
# [![](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/netch_channel) [![](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/netch_group) # [![](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/netch_channel) [![](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/netch_group)
# ## Changelogs # ## Changelogs