Update build.yml

This commit is contained in:
DecorativeFamily 2024-11-14 13:06:30 +03:30 committed by GitHub
parent 57f9c8158e
commit 33fde81bcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
name: release name: Release
on: on:
push: push:
@ -15,46 +15,62 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
# - name: 删除工作流运行 # Uncomment the following step if you want to delete old workflow runs
# uses: Mattraks/delete-workflow-runs@v2 # - name: Delete Workflow Runs
# with: # uses: Mattraks/delete-workflow-runs@v2
# token: ${{ github.token }} # with:
# repository: ${{ github.repository }} # token: ${{ github.token }}
# retain_days: 0 # repository: ${{ github.repository }}
# keep_minimum_runs: 1 # retain_days: 0
# keep_minimum_runs: 1
- name: Build - name: Build v2rayN
run: cd v2rayN && run: |
.\build.ps1 cd v2rayN && .\build.ps1
# - name: Package # Optional cleanup of .pdb files after builds
# 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 # List output files for verification
uses: actions/upload-artifact@v4 - name: List Output Files
with: run: |
name: v2rayN echo "Windows Build Output:"
path: | dir ./bin/win-x64
.\v2rayN\v2rayN.zip echo "Linux Build Output:"
dir ./bin/linux-x64
# - name: Release # Package the outputs into a zip file
# uses: softprops/action-gh-release@v1 - name: Package Artifacts
# env: run: |
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} 7z a v2rayN.zip ./bin/win-x64/* ./bin/linux-x64/*
# with:
# prerelease: ${{ contains(github.ref, '-') }} # Upload the zip file as an artifact
# draft: false - name: Upload Build Artifacts
# files: | uses: actions/upload-artifact@v4
# .\v2rayN\v2rayN.zip with:
# body: | name: v2rayN
# [![](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) path: v2rayN.zip
# ## Changelogs
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon # 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://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
# * This is an automated deployment of GitHub Actions; the change log should be updated manually soon.
# ## 更新日志 # ## 更新日志
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新 # * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新