Skip to content

Commit 4bea18c

Browse files
authored
Merge pull request abrignoni#78 from forensicmike/master
Add build pipeline for iLEAPP executables
2 parents 30685de + 40cb5c5 commit 4bea18c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Build iLEAPP executables and generate release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Package iLEAPP
17+
uses: JackMcKew/pyinstaller-action-windows@main
18+
with:
19+
path: .
20+
spec: ileapp.spec
21+
22+
- name: Package iLEAPP GUI
23+
uses: JackMcKew/pyinstaller-action-windows@main
24+
with:
25+
path: .
26+
spec: ileappGUI.spec
27+
28+
- uses: actions/upload-artifact@v2
29+
with:
30+
name: iLEAPP
31+
path: dist/windows
32+
33+
- name: Zip All The Things
34+
uses: montudor/action-zip@v0.1.0
35+
with:
36+
args: zip -qq -r dist/iLEAPP-windows.zip dist/windows
37+
38+
- name: Create Github Release
39+
id: githubrelease
40+
uses: actions/create-release@v1
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
43+
with:
44+
tag_name: ${{ github.ref }}
45+
release_name: Release ${{ github.ref }}
46+
draft: false
47+
prerelease: false
48+
49+
- name: Upload Release Asset
50+
uses: actions/upload-release-asset@v1
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
with:
54+
upload_url: ${{ steps.githubrelease.outputs.upload_url }}
55+
asset_path: dist/iLEAPP-windows.zip
56+
asset_name: iLEAPP-windows.zip
57+
asset_content_type: application/zip

0 commit comments

Comments
 (0)