Skip to content

Release pipeline

Release pipeline #5

Workflow file for this run

name: Publish
on: [pull_request]
jobs:
create-python-package:
strategy:
matrix:
component: ["Common", "Client"]
runs-on: ubuntu-latest
outputs:
hash: ${{ steps.hash.outputs.hash }}
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 Client && python -m build
- name: Generate hash
id: hash
run: cd Client/dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
- name: Upload python artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
path: Client/dist
#
# pypi-publish-common:
# name: Upload beaker-common release to PyPI
# runs-on: ubuntu-latest
# environment: production
# permissions:
# id-token: write
# steps:
# -
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# packages-dir: artifacts/
#
# pypi-publish-client:
# name: Upload beaker-client release to PyPI
# runs-on: ubuntu-latest
# environment: production
# permissions:
# id-token: write
# steps:
# -
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# packages-dir: artifacts/