mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 06:46:19 +00:00
Update build.yml
This commit is contained in:
parent
57f9c8158e
commit
33fde81bcd
1 changed files with 54 additions and 38 deletions
92
.github/workflows/build.yml
vendored
92
.github/workflows/build.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: release
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -15,46 +15,62 @@ jobs:
|
|||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
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
|
||||
# Uncomment the following step if you want to delete old workflow runs
|
||||
# - name: Delete Workflow Runs
|
||||
# uses: Mattraks/delete-workflow-runs@v2
|
||||
# with:
|
||||
# token: ${{ github.token }}
|
||||
# repository: ${{ github.repository }}
|
||||
# retain_days: 0
|
||||
# keep_minimum_runs: 1
|
||||
|
||||
- name: Build
|
||||
run: cd v2rayN &&
|
||||
.\build.ps1
|
||||
- name: Build v2rayN
|
||||
run: |
|
||||
cd v2rayN && .\build.ps1
|
||||
|
||||
# - name: Package
|
||||
# shell: pwsh
|
||||
# run: |
|
||||
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
|
||||
# Optional cleanup of .pdb files after builds
|
||||
- name: Clean Up PDB Files
|
||||
run: |
|
||||
rm -f ./bin/win-x64/*.pdb
|
||||
rm -f ./bin/linux-x64/*.pdb
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: v2rayN
|
||||
path: |
|
||||
.\v2rayN\v2rayN.zip
|
||||
# List output files for verification
|
||||
- name: List Output Files
|
||||
run: |
|
||||
echo "Windows Build Output:"
|
||||
dir ./bin/win-x64
|
||||
echo "Linux Build Output:"
|
||||
dir ./bin/linux-x64
|
||||
|
||||
# - name: Release
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
# with:
|
||||
# prerelease: ${{ contains(github.ref, '-') }}
|
||||
# draft: false
|
||||
# files: |
|
||||
# .\v2rayN\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
|
||||
# Package the outputs into a zip file
|
||||
- name: Package Artifacts
|
||||
run: |
|
||||
7z a v2rayN.zip ./bin/win-x64/* ./bin/linux-x64/*
|
||||
|
||||
# Upload the zip file as an artifact
|
||||
- name: Upload Build Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: v2rayN
|
||||
path: v2rayN.zip
|
||||
|
||||
# Uncomment to create a release on GitHub after building
|
||||
# - name: Create 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 自动化部署,更新日志应该很快会手动更新
|
||||
# ## 更新日志
|
||||
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新。
|
||||
|
|
Loading…
Reference in a new issue