Skip to content

add build releases

add build releases #1

Workflow file for this run

name: CI - Build Release
on:
push:
paths-ignore:
- 'docs/**'
workflow_dispatch:
inputs:
tag_version:
description: 'Version'
required: true
type: string
default: '3.0.1'
pre_release:
description: 'Pre-release or not'
required: true
type: boolean
default: false
desciption:
description: 'desciption'
required: true
type: string
default: ""
jobs:
build:
name: Build Release
runs-on: macos-26
if: github.repository_owner == 'hackdoc'
env:
# GitHub Information
branch: ${{ github.ref }}
pre: ${{inputs.pre_release}}
tag: ${{inputs.tag_version}}
des: ${{inputs.desciption}}
commiturl: ${{ github.event.head_commit.url }}${{ github.event.release.html_url }}
commitdate: ${{ github.event.head_commit.timestamp }}${{ github.event.release.published_at }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
run: |
rm -rf Univ*
rm -rf *pay*.dmg
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 -m pip install -r requirements.txt
- name: Force x86_64 charset for Python
run: |
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 -m pip uninstall -y charset_normalizer
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 -m pip download --platform macosx_10_13_x86_64 --only-binary=:all: charset-normalizer
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 -m pip install charset_normalizer-3.4.4-cp312-cp312-macosx_10_13_universal2.whl
- name: Prepare Assets (--prepare-assets)
run: >
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 Build-Project.command
--run-as-individual-steps
--prepare-assets
- name: Prepare Application (--prepare-application)
run: >
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 Build-Project.command
--git-branch "${{ env.branch }}" --git-commit-url "${{ env.commiturl }}" --git-commit-date "${{ env.commitdate }}"
--reset-pyinstaller-cache
--run-as-individual-steps
--prepare-application
- name: Prepare Package (--prepare-package)
run: >
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3 Build-Project.command
--run-as-individual-steps
--prepare-package
- name: Create Pre-Release on Push
if: github.event_name == 'push'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{env.tag}}
name: ${{env.tag}}
body: ${{ env.des }}
prerelease: false
files: |
./dist/AutoPkg-Assets.pkg
./dist/OCLP-R.pkg
./dist/OCLP-R-Uninstaller.pkg