Update build.yml

refactoring codes
This commit is contained in:
DecorativeFamily 2024-11-07 18:05:12 +03:30 committed by GitHub
parent c4b490e46d
commit 781e12e5db
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,43 @@ 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
run: cd v2rayN && run: |
.\build.ps1 cd v2rayN && .\build.ps1
# - name: Package - name: Upload Build Artifacts
# shell: pwsh uses: actions/upload-artifact@v4
# run: | with:
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory name: v2rayN
path: .\v2rayN\v2rayN.zip
- name: Upload build artifacts # Uncomment the following step if you want to create a release on GitHub
uses: actions/upload-artifact@v4 # - name: Release
with: # uses: softprops/action-gh-release@v1
name: v2rayN # env:
path: | # GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
.\v2rayN\v2rayN.zip # with:
# prerelease: ${{ contains(github.ref, '-') }}
# - name: Release # draft: false
# uses: softprops/action-gh-release@v1 # files: .\v2rayN\v2rayN.zip
# env: # body: |
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # [![Telegram Channel](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/netch_channel)
# with: # [![Telegram Group](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/netch_group)
# prerelease: ${{ contains(github.ref, '-') }} #
# draft: false # ## Changelog
# files: | # * This is an automated deployment via GitHub Actions. The changelog will be updated manually soon.
# .\v2rayN\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) # * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新。
# ## Changelogs
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon
# ## 更新日志
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新