-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (33 loc) · 933 Bytes
/
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
on:
release:
types: [published]
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.9"
- 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: Upload artifacts to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release upload
'${{ github.ref_name }}' dist/forensicsim.zip
--repo '${{ github.repository }}'