Skip to content

Commit

Permalink
add deployment for robocorp client
Browse files Browse the repository at this point in the history
  • Loading branch information
vzickner committed Sep 20, 2024
1 parent cf2f50f commit 25f8fbe
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 5 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,39 @@ jobs:
- run: virtualenv venv
- run: source venv/bin/activate
- run: pip install setuptools
- run: cd ./external-worker/ && python setup.py sdist
- run: cd ./external-worker/ && pip wheel --no-deps . -w dist
- run: python setup.py sdist
working-directory: ./external-worker/
- run: pip wheel --no-deps . -w dist
working-directory: ./external-worker/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: external-worker/dist/
verbose: true

build-robocorp-client:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12.0
uses: actions/setup-python@v4
with:
python-version: 3.12.0
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: pip install virtualenv
- run: virtualenv venv
- run: source venv/bin/activate
- run: pip install setuptools
- run: python setup.py install
working-directory: ./external-worker/
- run: python setup.py sdist
working-directory: ./external-worker/
- run: pip wheel --no-deps . -w dist
working-directory: ./external-worker/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
38 changes: 35 additions & 3 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- v*

jobs:
build:
build-external-worker-client:
runs-on: ubuntu-latest
environment: release
permissions:
Expand All @@ -23,8 +23,40 @@ jobs:
- run: virtualenv venv
- run: source venv/bin/activate
- run: pip install setuptools
- run: cd ./external-worker/ && python setup.py sdist
- run: cd ./external-worker/ && pip wheel --no-deps . -w dist
- run: python setup.py sdist
working-directory: ./external-worker/
- run: pip wheel --no-deps . -w dist
working-directory: ./external-worker/
- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: external-worker/dist/
verbose: true

build-robocorp-client:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12.0
uses: actions/setup-python@v4
with:
python-version: 3.12.0
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: pip install virtualenv
- run: virtualenv venv
- run: source venv/bin/activate
- run: pip install setuptools
- run: python setup.py install
working-directory: ./external-worker/
- run: python setup.py sdist
working-directory: ./external-worker/
- run: pip wheel --no-deps . -w dist
working-directory: ./external-worker/
- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit 25f8fbe

Please sign in to comment.