Skip to content

Commit

Permalink
Build Linux PyInstaller binary in CentOS 8 container (#293)
Browse files Browse the repository at this point in the history
* Build PyInstaller binary in CentOS 8 container

* Use single release step
  • Loading branch information
pederhan authored Sep 17, 2024
1 parent c5f46ca commit 2729de6
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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/*

0 comments on commit 2729de6

Please sign in to comment.