Skip to content

Commit

Permalink
Build and release python package
Browse files Browse the repository at this point in the history
  • Loading branch information
paytoncain committed Apr 5, 2024
1 parent e271ae5 commit 6cb5ced
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,35 @@ jobs:
with:
name: reflection-config
path: "pace-cli/target/classes/native-reflection-configuration.json"
- name: Prepare Python Module
run: "touch pace-data/target/generated-sources/python/pacedata/__init__.py && cp pace-data/target/classes/python/setup.py pace-data/target/generated-sources/python/."
- name: Upload Python Module
uses: actions/upload-artifact@v4
with:
name: python-module
path: "pace-data/target/generated-sources/python"

package-python:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Python Module
uses: actions/download-artifact@v4
with:
name: python-module
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Python Dependencies
run: python -m pip install --upgrade pip && python -m pip install setuptools
- name: Build Python Package
run: python setup.py sdist
- name: Upload Python Package
uses: actions/upload-artifact@v4
with:
name: python-package
path: "dist/*.tar.gz"

native-image:
needs: build
Expand Down Expand Up @@ -76,13 +105,15 @@ jobs:
needs:
- build
- native-image
- package-python
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- run: mkdir release
- run: zip -r release/pace-cli-Linux-X64-${{ needs.build.outputs.version }}.zip pace-cli-Linux-X64
- run: zip -r release/pace-cli-macOS-ARM64-${{ needs.build.outputs.version }}.zip pace-cli-macOS-ARM64
- run: zip -r release/pace-cli-macOS-X64-${{ needs.build.outputs.version }}.zip pace-cli-macOS-X64
- run: cp python-package/*.tar.gz release/.
- run: cp exe-jar/pace-cli-${{ needs.build.outputs.version }}-jar-with-dependencies.jar release/pace-cli-${{ needs.build.outputs.version }}.jar
- name: Update branch release
uses: eine/tip@master
Expand Down

0 comments on commit 6cb5ced

Please sign in to comment.