Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 9 additions & 160 deletions .github/workflows/dev_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,38 +33,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ue4ss_installer_x86_64-unknown-linux-gnu
path: dist/ue4ss_installer_x86_64-unknown-linux-gnu.zip

setup_ubuntu_aarch64:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'refs/heads/dev'

- name: Setup Python (arm64)
uses: actions/setup-python@v5
with:
python-version: 3.x
architecture: "arm64"

- name: Install Hatch
run: pip install hatch

- name: Create Hatch virtual environment for aarch64-linux
run: hatch env create aarch64-unknown-linux-gnu

- name: Build Release
run: hatch run py_project_dev_tools make_exe_release_ci_cd --os_arch_line "aarch64-unknown-linux-gnu"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ue4ss_installer_aarch64-unknown-linux-gnu
path: dist/ue4ss_installer_aarch64-unknown-linux-gnu.zip
name: ue4ss_installer_gui_x86_64-unknown-linux-gnu
path: dist/ue4ss_installer_gui_x86_64-unknown-linux-gnu.zip

setup_windows_x86_64:
if: github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -93,42 +63,12 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ue4ss_installer_x86_64-pc-windows-msvc
path: dist/ue4ss_installer_x86_64-pc-windows-msvc.zip

setup_windows_i686:
if: github.ref == 'refs/heads/main'
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'refs/heads/dev'

- name: Setup Python (x86)
uses: actions/setup-python@v5
with:
python-version: 3.x
architecture: "x86"

- name: Install Hatch
run: pip install hatch

- name: Create Hatch virtual environment for i686-windows
run: hatch env create i686-pc-windows-msvc

- name: Build Release
run: hatch run py_project_dev_tools make_exe_release_ci_cd --os_arch_line "i686-pc-windows-msvc"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ue4ss_installer_i686-pc-windows-msvc
path: dist/ue4ss_installer_i686-pc-windows-msvc.zip
name: ue4ss_installer_gui_x86_64-pc-windows-msvc
path: dist/ue4ss_installer_gui_x86_64-pc-windows-msvc.zip

bump_version:
runs-on: ubuntu-latest
needs: [setup_ubuntu_x86_64, setup_ubuntu_aarch64, setup_windows_x86_64, setup_windows_i686]
needs: [setup_ubuntu_x86_64, setup_windows_x86_64]
steps:
- name: Check out
uses: actions/checkout@v4
Expand Down Expand Up @@ -160,109 +100,20 @@ jobs:
name: body.md
path: body.md



setup_wheels_and_source_distributions:
runs-on: ubuntu-latest
outputs:
wheel_artifact_name: ${{ steps.find_wheel.outputs.artifact_name }}
sdist_artifact_name: ${{ steps.find_sdist.outputs.artifact_name }}
needs: [bump_version]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'refs/heads/dev'

- name: Setup Python (x64)
uses: actions/setup-python@v5
with:
python-version: 3.x
architecture: "x64"

- name: Install Hatch
run: pip install hatch

- name: Build Wheels and Source Distributions
run: hatch build

# - name: Publish Wheels and Source Distributions
# run: hatch publish --repo "main" --user "__token__" --auth "${{ secrets.PYPI_PASSWORD }}"

- name: Find wheel file
id: find_wheel
run: |
WHEEL_PATH=$(find dist -name "*.whl" | head -n 1)
WHEEL_NAME=$(basename "$WHEEL_PATH")
ARTIFACT_NAME="${WHEEL_NAME%.whl}"
echo "wheel_path=$WHEEL_PATH" >> "$GITHUB_OUTPUT"
echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"

- name: Upload python wheel artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.find_wheel.outputs.artifact_name }}
path: ${{ steps.find_wheel.outputs.wheel_path }}

- name: Find sdist file
id: find_sdist
run: |
SDIST_PATH=$(find dist -name "*.tar.gz" | head -n 1)
SDIST_NAME=$(basename "$SDIST_PATH")
ARTIFACT_NAME="${SDIST_NAME%.tar.gz}"
echo "sdist_path=$SDIST_PATH" >> "$GITHUB_OUTPUT"
echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"

- name: Upload python sdist artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.find_sdist.outputs.artifact_name }}
path: ${{ steps.find_sdist.outputs.sdist_path }}

setup_github_releases:
runs-on: ubuntu-latest
needs: [setup_wheels_and_source_distributions]
needs: [bump_version]
steps:
- name: Download ubuntu_x86_64_artifact
uses: actions/download-artifact@v4
with:
name: ue4ss_installer_x86_64-unknown-linux-gnu
path: ./dist

- name: Download ubuntu_aarch64_artifact
uses: actions/download-artifact@v4
with:
name: ue4ss_installer_aarch64-unknown-linux-gnu
name: ue4ss_installer_gui_x86_64-unknown-linux-gnu
path: ./dist

- name: Download windows_x86_64_artifact
uses: actions/download-artifact@v4
with:
name: ue4ss_installer_x86_64-pc-windows-msvc
path: ./dist

- name: Download windows_i686_artifact
uses: actions/download-artifact@v4
with:
name: ue4ss_installer_i686-pc-windows-msvc
path: ./dist

- name: Download windows_i686_artifact
uses: actions/download-artifact@v4
with:
name: ue4ss_installer_i686-pc-windows-msvc
path: ./dist

- name: Download python_wheel_artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.setup_wheels_and_source_distributions.outputs.wheel_artifact_name }}
path: ./dist

- name: Download python_sdist_artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.setup_wheels_and_source_distributions.outputs.sdist_artifact_name }}
name: ue4ss_installer_gui_x86_64-pc-windows-msvc
path: ./dist

- name: Download version.txt artifact
Expand All @@ -284,7 +135,7 @@ jobs:

cd dist

for FILE in ue4ss_installer*.zip; do
for FILE in ue4ss_installer_gui*.zip; do
if [[ "$FILE" != *"$VERSION"* ]]; then
BASE="${FILE%.zip}"
# Replace underscores with hyphens and add version
Expand Down Expand Up @@ -320,8 +171,6 @@ jobs:
tag_name: ${{ steps.extract_version.outputs.version }}
files: |
dist/*.zip
dist/*.whl
dist/*.tar.gz
dist/*.sha256
prerelease: true
env:
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/github_pages.yml

This file was deleted.

Loading
Loading