Skip to content

fix test

fix test #60

Workflow file for this run

name: release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
cd v2rayN
.\build.ps1
- name: Create Release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body: |
Автоматически созданный релиз для версии ${{ github.ref_name }}
draft: false
prerelease: false
- name: Upload Windows Build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/v2rayN/bin/v2rayN/win-x64/v2rayN-windows-64.zip
asset_name: v2rayN-windows-64.zip
asset_content_type: application/zip
- name: Upload Linux Build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/v2rayN/bin/v2rayN/linux-x64/v2rayN-linux-64.zip
asset_name: v2rayN-linux-64.zip
asset_content_type: application/zip