-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (41 loc) · 1.47 KB
/
release_droid_upload_github_release_assets.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
name: Release Droid - Upload GitHub Release Assets
on:
workflow_dispatch:
inputs:
upload_url:
description: 'Upload URL'
required: true
jobs:
release:
strategy:
matrix:
python-version: [ "3.10" ]
runs-on: ubuntu-latest
env:
RELEASE_DIR: ".build_output/exported_container"
steps:
- uses: actions/checkout@v3
- name: Setup Python & Poetry Environment
uses: ./.github/actions/prepare_poetry_env
- name: Build Poetry
run: poetry build
- name: Install project whl
run: pip install dist/*.whl
- name: Release language container
run: poetry run python3 -u "./exasol_sagemaker_extension/deployment/language_container.py" "$RELEASE_DIR"
- name: Upload assets to the GitHub release draft
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: dist/*
# Since the container was built in the pytest run above, no need to rebuilt before the upload.
- name: Upload script-language container
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: ${{ env.RELEASE_DIR }}/*
- name: PyPi Release
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: "__token__"
POETRY_HTTP_BASIC_PYPI_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
run: poetry publish