Update build.yml

pull/6070/head
DecorativeFamily 2024-11-14 13:32:18 +03:30 committed by GitHub
parent 57f9c8158e
commit cd197133e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 45 additions and 42 deletions

View File

@ -1,10 +1,10 @@
name: release name: Release
on: on:
push: push:
branches: [ "master" ] branches: ["master"]
pull_request: pull_request:
branches: [ "master" ] branches: ["master"]
jobs: jobs:
build: build:
@ -15,46 +15,49 @@ 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 to delete previous 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 # Uncomment to package the build artifacts
# shell: pwsh # - name: Package
# run: | # shell: pwsh
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory # run: |
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
- 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: .\v2rayN\v2rayN.zip
.\v2rayN\v2rayN.zip
# - name: Release # Uncomment to create a release on GitHub
# uses: softprops/action-gh-release@v1 # - name: Release
# env: # uses: softprops/action-gh-release@v1
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # env:
# with: # GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# prerelease: ${{ contains(github.ref, '-') }} # with:
# draft: false # prerelease: ${{ contains(github.ref, '-') }}
# files: | # draft: false
# .\v2rayN\v2rayN.zip # files: .\v2rayN\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)
# ## Changelogs # [![](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/netch_group)
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon #
# ## Changelogs
# ## 更新日志 # * This is an automated deployment of GitHub Actions; the changelog should be updated manually soon.
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新 #
# ## 更新日志
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新。