From 2729de6d718a254dc5174d043bb7fda6496c43c3 Mon Sep 17 00:00:00 2001 From: Peder Hovdan Andresen <107681714+pederhan@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:00:44 +0200 Subject: [PATCH] Build Linux PyInstaller binary in CentOS 8 container (#293) * Build PyInstaller binary in CentOS 8 container * Use single release step --- .github/workflows/publish.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d79bda5..e0ec7d4f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,12 +42,17 @@ jobs: build_pyinstaller: name: Build pyinstaller binary - runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-22.04, windows-latest, macos-latest] + os: [ubuntu-latest, windows-latest, macos-latest] python-version: - '3.12' + include: + - os: ubuntu-latest + container: centos:8 + runs-on: ${{ matrix.os }} + container: ${{ matrix.container }} + steps: - uses: actions/checkout@v4 @@ -112,22 +117,11 @@ jobs: merge-multiple: true - name: Create GitHub release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + files: dist/* body: | - Release notes for ${{ github.ref }} + Release ${{ github.ref_name }} draft: false prerelease: false - - - name: Upload release asset - id: upload-release-asset - uses: softprops/action-gh-release@v2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - files: dist/* + \ No newline at end of file