-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.1 KB
/
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
41
42
43
44
45
46
47
48
49
name: Release
on:
workflow_dispatch:
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up pip and virtualenv
run: |
python -m pip install --upgrade pip
python -m pip install virtualenv
python -m virtualenv venv
- name: Copy files
run: |
mkdir app
cp -r src/ app/
cp main.spec app/
cp README.md app/
cp LICENSE app/
- name: Build with PyInstaller
run: |
.\venv\Scripts\activate
pip install -r requirements.txt
cd app
pyinstaller main.spec
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ github.run_number }}
name: Release ${{ github.run_number }}
body: |
Changes in this Release:
- Built with PyInstaller
draft: false
prerelease: false
files: ./app/dist/Rom_Detective.exe