-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martin Styk <mart.styk@gmail.com>
- Loading branch information
1 parent
1b4e12c
commit b365501
Showing
2 changed files
with
54 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Publish | ||
|
||
#on: | ||
# push: | ||
# tags: | ||
# - 'beaker-*' | ||
on: [pull_request] | ||
|
||
jobs: | ||
build-python-package: | ||
strategy: | ||
matrix: | ||
component: | ||
- "Common" | ||
- "Client" | ||
name: Build python package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install python dependencies | ||
run: pip install --upgrade pip && pip install build | ||
- name: Build python package | ||
run: cd ${{ matrix.component }} && python -m build | ||
- name: Upload python artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ${{ matrix.component }}/dist | ||
name: artifact-${{ matrix.component }} | ||
|
||
publish-python-package: | ||
needs: | ||
- "build-python-package" | ||
# environment: production | ||
# permissions: | ||
# id-token: write | ||
strategy: | ||
matrix: | ||
component: | ||
- "Common" | ||
- "Client" | ||
name: Upload package to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact-${{ matrix.component }} | ||
- name: Display structure of downloaded files | ||
run: ls -R |