-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.43 KB
/
publish-pypi.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
53
54
name: Publish to PyPI
on:
push:
branches:
- das-node-29
# workflow_dispatch:
# inputs:
# version:
# description: "Version"
# required: true
jobs:
# tag:
# uses: singnet/das/.github/workflows/run-semver.yml@master
# with:
# version: ${{ github.event.inputs.version }}
# version-strategy: bump-version-from-variable-value
# job-image-namespace: trueagi
# job-image-version-semver: semantic-versioning
# main-branch: master
# version-tag-regex-pattern: /^\d+\.\d+\.\d+$/
# version-require-confirmation: "true"
# title: New version of hyperon-das-node
# deliverable: Library in PyPI named hyperon-das-node
# secrets: inherit
build:
runs-on: ubuntu-22.04
# needs: tag
# if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build (Docker Image)
run: ./scripts/docker_image_build.sh
- name: Build (Bazel)
run: ./scripts/build.sh
- name: Build (Docker Image Wheel)
run: ./scripts/docker_image_wheel.sh
- name: Build (Wheel)
run: ./scripts/wheel.sh
- name: Install twine
run: pip install twine
- name: Publish Package
working-directory: wheelhouse
run: twine upload $(find . -name *.whl | head -n 1) --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} --non-interactive