Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPI whl build and upload to PyPI test server nightly job #2317

Merged
merged 5 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/pypi_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# YAML schema for GitHub Actions:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#
# Helpful YAML parser to clarify YAML syntax:
# https://yaml-online-parser.appspot.com/
#

name: PyPI Build

on:
schedule:
# 1pm UTC is 6am or 7am PT depending on daylight savings.
- cron: '0 13 * * *'

workflow_dispatch:
inputs:
upload-type:
description: 'Upload type'
required: true
default: 'pypi'
type: choice
options:
- 'pypi'
- 'no upload'
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}

jobs:
pypi-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.TFLM_BOT_REPO_TOKEN }}
- name: Build Wheel 3.10
run: |
python/tflite_micro/pypi_build.sh cp310
- name: Build Wheel 3.11
run: |
python/tflite_micro/pypi_build.sh cp311
- name: Check Directory Output
run: |
ls -l bazel-pypi-out
- name: upload to pypi
if: |
github.event.inputs.upload-type == 'pypi' ||
github.event_name == 'schedule'
run: |
python/tflite_micro/pypi_upload.sh \
bazel-pypi-out/tflite_micro-*.whl