2222 steps :
2323 - name : Determine if pre-release
2424 id : prerelease_check
25+ # it checks for PEP 440 compatible prerelease tags
2526 run : |
26- export IS_PRERELEASE=$([[ ${{ github.ref }} =~ [^ 0-9]$ ]] && echo true || echo false)
27+ export IS_PRERELEASE=$([[ ${{ github.ref }} =~ [abrcdev]+[ 0-9]+ $ ]] && echo true || echo false)
2728 echo "prerelease=$IS_PRERELEASE" >> $GITHUB_OUTPUT
2829 export PUBLISH_DOCKER=$([[ $IS_PRERELEASE == 'false' && "${{ secrets.DOCKERHUB_USERNAME }}" != '' ]] && echo true || echo false)
2930 echo "publish_docker=$PUBLISH_DOCKER" >> $GITHUB_OUTPUT
@@ -39,17 +40,17 @@ jobs:
3940 - name : Build the distribution
4041 id : build
4142 run : nox -vs build
42- - name : Read the Changelog
43- id : read-changelog
44- uses : mindsers/changelog-reader-action@v2
45- with :
46- version : ${{ steps.build.outputs.version }}
43+ # - name: Read the Changelog
44+ # id: read-changelog
45+ # uses: mindsers/changelog-reader-action@v2
46+ # with:
47+ # version: ${{ steps.build.outputs.version }}
4748 - name : Create GitHub release and upload the distribution
4849 id : create-release
4950 uses : softprops/action-gh-release@v2
5051 with :
5152 name : ${{ steps.build.outputs.version }}
52- body : ${{ steps.read-changelog.outputs.changes }}
53+ body : test
5354 draft : false
5455 prerelease : ${{ steps.prerelease_check.outputs.prerelease }}
5556 files : ${{ steps.build.outputs.asset_path }}
@@ -61,19 +62,22 @@ jobs:
6162 password : ${{ secrets.B2_PYPI_PASSWORD }}
6263 deploy-linux-bundle :
6364 needs : deploy
64- runs-on : ubuntu-latest
65- container :
66- image : " python:3.12" # can not use ${{ env.PYTHON_DEFAULT_VERSION }} here
67- env :
68- DEBIAN_FRONTEND : noninteractive
65+ strategy :
66+ matrix :
67+ os : [ "ubuntu-22.04", "ubuntu-22.04-arm" ]
68+ runs-on : ${{ matrix.os }}
6969 steps :
7070 - uses : actions/checkout@v4
7171 with :
7272 fetch-depth : 0
73+ - name : Set up Python ${{ env.PYTHON_DEFAULT_VERSION }} (deadsnakes)
74+ uses :
deadsnakes/[email protected] # staticx doesn't work with python installed by setup-python action 75+ with :
76+ python-version : ${{ env.PYTHON_DEFAULT_VERSION }}
7377 - name : Install dependencies
7478 run : |
75- apt-get -y update
76- apt-get -y install patchelf
79+ sudo apt-get -y update
80+ sudo apt-get -y install patchelf scons
7781 python -m pip install --upgrade nox pdm
7882 git config --global --add safe.directory '*'
7983 - name : Bundle the distribution
0 commit comments