forked from TheDeathDragon/LiveTranslate
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.01 KB
/
Copy pathrelease.yml
File metadata and controls
41 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build portable release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: 'Version label for the zip (optional, e.g. v1.0.0)'
required: false
default: ''
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Build portable zip
shell: pwsh
run: |
$version = "${{ github.event.inputs.version }}"
if (-not $version -and "${{ github.ref_type }}" -eq "tag") { $version = "${{ github.ref_name }}" }
if ($version) { ./build_release.ps1 -Version $version } else { ./build_release.ps1 }
- name: Upload workflow artifact
uses: actions/upload-artifact@v7
with:
name: LiveTranslate-portable
path: release/*.zip
- name: Attach to GitHub Release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
files: release/*.zip