Update create_beta.yml #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
release/*.deb | |
# run: | | |
# bash -x build_mac.sh |