-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (45 loc) · 1.34 KB
/
release.yaml
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
on:
push:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags
# e.g., v1.10.1
tags:
- 'v[0-9].[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
build:
name: Build exectuable 📦
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install . pyinstaller
- name: Build binary
run: pyinstaller "main.spec"
- name: Zip files 🗜️
run: |
cp tools/Forensicsim_Parser.py dist/
cd dist
tar.exe -a -cf forensicsim.zip Forensicsim_Parser.py ms_teams_parser.exe
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--title '${{ github.ref_name }}'
--generate-notes
- name: Upload artifacts to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release upload
'${{ github.ref_name }}' dist/forensicsim.zip
--repo '${{ github.repository }}'