mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Build Beta
|
|
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the "main" branch
|
|
push:
|
|
branches: [ "master" ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# the jobs are based on these notes:
|
|
# https://github.com/horsicq/Detect-It-Easy/blob/master/docs/BUILD.md
|
|
jobs:
|
|
build-ubuntu-24:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# Clone Detect-It-Easy repository
|
|
- name: Clone Detect-It-Easy
|
|
run: |
|
|
git clone --recursive https://github.com/horsicq/DIE-engine die_source
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install qtbase5-dev qtscript5-dev qttools5-dev-tools libqt5svg5-dev qtchooser qt5-qmake build-essential -y
|
|
- name: Build
|
|
run: |
|
|
cd die_source
|
|
bash -x build_dpkg.sh
|
|
- name: Upload Release as Download
|
|
uses: softprops/action-gh-release@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
with:
|
|
tag_name: Beta
|
|
release_name: Beta
|
|
draft: false
|
|
prerelease: true
|
|
files: |
|
|
${{ github.workspace }}/die_source/release/*.deb
|
|
|