-
Notifications
You must be signed in to change notification settings - Fork 86
43 lines (40 loc) · 1.13 KB
/
cd-pydgraph.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
name: cd-pydgraph
on:
workflow_dispatch:
inputs:
releasetag:
description: releasetag
required: true
type: string
permissions:
contents: read
jobs:
pydgraph-build:
runs-on: warp-ubuntu-latest-x64-16x
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.event.inputs.releasetag }}"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
# use twine to upload to pypi
python -m pip install twine
- name: Verify that protobufs are checked in
run: |
python scripts/protogen.py
git diff --exit-code -- .
- name: Build pydgraph
run: |
rm -rf dist
# build binary wheel and a source tarball
python -m build
- name: Upload to PyPi
run:
twine upload --username ${{ secrets.DGRAPH_PYPI_USERNAME }} --password ${{
secrets.DGRAPH_PYPI_PASSWORD }} dist/*