Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Add GCP runner to runner-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanw-mlc authored Aug 4, 2023
1 parent 375b4a5 commit ea5fd70
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/runner-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,32 @@ jobs:
verbose: true
env:
LOGLEVEL: DEBUG

gcp_runner_deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build distribution
run: |
cd runners/mlcube_gcp
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
verify-metadata: true
skip-existing: true
packages-dir: runners/mlcube_gcp/dist/
repository-url: https://upload.pypi.org/legacy/
verbose: true
env:
LOGLEVEL: DEBUG

0 comments on commit ea5fd70

Please sign in to comment.