-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yaml
More file actions
30 lines (29 loc) · 949 Bytes
/
Copy pathmain.yaml
File metadata and controls
30 lines (29 loc) · 949 Bytes
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
name: "Make installer action"
on:
push:
branches: ["main"]
workflow_call:
jobs:
build:
runs-on: windows-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Run Python script
run: python pyinst_env\\set_version.py --version ${{ github.run_id }}
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: '3.11'
spec: ${{ github.event.repository.name }}.spec
requirements: 'requirements.txt'
upload_exe_with_name: ${{ github.event.repository.name }}.exe
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: tag-${{ github.run_id }}-${{ github.run_attempt }}
name: rel-${{ github.run_id }}-${{ github.run_attempt }}
files: ./dist/${{ github.event.repository.name }}.exe