-
Notifications
You must be signed in to change notification settings - Fork 41
52 lines (47 loc) · 1.3 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Publish
on: [pull_request]
jobs:
create-python-client-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install --upgrade pip && pip install build
- name: Build python package
run: python -m build
- name: generate hash
id: hash
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
with:
path: ./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/