-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.05 KB
/
python-build.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
50
51
52
53
54
55
56
57
name: Python Build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: pip install pyinstaller
- name: Build executable
run: pyinstaller --onefile life.py
- name: List files in dist directory
run: ls -l dist
- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: life-exe
path: dist/life.exe
release:
runs-on: windows-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: life-exe
- name: List files after download
run: ls -l
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: life.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}