v2rayN/.github/workflows/build.yml
DecorativeFamily 781e12e5db
Update build.yml
refactoring codes
2024-11-07 18:05:12 +03:30

57 lines
1.7 KiB
YAML

name: Release
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# 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: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: v2rayN
path: .\v2rayN\v2rayN.zip
# Uncomment the following step if you want to create a release on GitHub
# - 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: |
# [![Telegram Channel](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/netch_channel)
# [![Telegram Group](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/netch_group)
#
# ## Changelog
# * This is an automated deployment via GitHub Actions. The changelog will be updated manually soon.
#
# ## 更新日志
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新。