Skip to content

Commit

Permalink
test8
Browse files Browse the repository at this point in the history
  • Loading branch information
Phleesty committed Nov 16, 2024
1 parent bb34551 commit 1b1e062
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,37 @@ name: release

on:
push:
branches: [ "master" ]
branches: [ "master" ] # Для проверки при пуше в master
tags: ["*"] # Для создания релиза при пуше тега
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4

# - name: 删除工作流运行
# 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 &&
run: |
cd v2rayN
.\build.ps1

# - name: Package
# shell: pwsh
# run: |
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
- name: Upload build artifacts
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') # Выполнять только при пуше тега
uses: actions/upload-artifact@v4
with:
name: v2rayN
path: |
.\v2rayN\v2rayN.zip
- name: Create Release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') # Выполнять только при пуше тега
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -56,6 +46,7 @@ jobs:
prerelease: false

- name: Upload Release Asset
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') # Выполнять только при пуше тега
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1b1e062

Please sign in to comment.