-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (39 loc) · 1.06 KB
/
release.yml
File metadata and controls
39 lines (39 loc) · 1.06 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
name: Build Windows Executable
on:
push:
tags:
- "v*.*.*"
jobs:
build:
if: startsWith(github.ref, 'refs/tags/')
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.13'
architecture: 'x64'
- name: Install requirements and installer
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Run pyinstaller
run: |
python -m PyInstaller k2c.spec
- run: ls dist
- run: mv dist/k2c.exe .
- run: ls .
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.RELEASE_TOKEN }}
body: ${{steps.github_release.outputs.changelog}}
files: |
./k2c.exe