|
|
@ -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 |
|
|
|
|
|
|
|
run: cd v2rayN && |
|
|
|
- name: Build |
|
|
|
.\build.ps1 |
|
|
|
run: | |
|
|
|
|
|
|
|
cd v2rayN && .\build.ps1 |
|
|
|
# - name: Package |
|
|
|
|
|
|
|
# shell: pwsh |
|
|
|
# Uncomment to package the build artifacts |
|
|
|
# run: | |
|
|
|
# - name: Package |
|
|
|
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory |
|
|
|
# shell: pwsh |
|
|
|
|
|
|
|
# run: | |
|
|
|
- name: Upload build artifacts |
|
|
|
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory |
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
|
|
|
with: |
|
|
|
- name: Upload Build Artifacts |
|
|
|
name: v2rayN |
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
path: | |
|
|
|
with: |
|
|
|
.\v2rayN\v2rayN.zip |
|
|
|
name: v2rayN |
|
|
|
|
|
|
|
path: .\v2rayN\v2rayN.zip |
|
|
|
# - name: Release |
|
|
|
|
|
|
|
# uses: softprops/action-gh-release@v1 |
|
|
|
# Uncomment to create a release on GitHub |
|
|
|
# env: |
|
|
|
# - name: Release |
|
|
|
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
|
|
|
# uses: softprops/action-gh-release@v1 |
|
|
|
# with: |
|
|
|
# env: |
|
|
|
# prerelease: ${{ contains(github.ref, '-') }} |
|
|
|
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
|
|
|
# draft: false |
|
|
|
# with: |
|
|
|
# files: | |
|
|
|
# prerelease: ${{ contains(github.ref, '-') }} |
|
|
|
# .\v2rayN\v2rayN.zip |
|
|
|
# draft: false |
|
|
|
# body: | |
|
|
|
# files: .\v2rayN\v2rayN.zip |
|
|
|
# [![](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) |
|
|
|
# body: | |
|
|
|
# ## Changelogs |
|
|
|
# [![](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/netch_channel) |
|
|
|
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon |
|
|
|
# [![](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/netch_group) |
|
|
|
|
|
|
|
# |
|
|
|
# ## 更新日志 |
|
|
|
# ## Changelogs |
|
|
|
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新 |
|
|
|
# * This is an automated deployment of GitHub Actions; the changelog should be updated manually soon. |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# ## 更新日志 |
|
|
|
|
|
|
|
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新。 |
|
|
|