-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 936 Bytes
/
release.yml
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
name: Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Prepare Build
run: |
touch first_launch
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
spec: 'ObjectTracking-win64.spec'
requirements: 'requirements.txt'
python_ver: '3.11.8'
python_arch: 'x64'
clean_checkout: 'false'
- name: zip Application
run: |
Compress-Archive -Path dist/ObjectTracking/* -Destination HackebeinObjectTracking-${{ github.ref_name }}-win64.zip
- name: Make Release
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ contains( github.ref_name , '-') }}
files: |
HackebeinObjectTracking-*.zip
token: ${{ secrets.TOKEN }}