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

chore(git): Delete Old Workflows, Add Publish to Test for Core. #111

Merged
merged 6 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
14 changes: 13 additions & 1 deletion .github/workflows/build-and-publish-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
# limitations under the License.

name: Build and Publish Core
on: workflow_dispatch
on:
workflow_dispatch:
inputs:
test:
description: 'Release to test?'
required: false
jobs:
build-and-publish-core:
runs-on: ubuntu-latest
Expand All @@ -34,3 +39,10 @@ jobs:
with:
password: ${{ secrets.PY_PI_TOKEN }}
packages_dir: openworld/sdk/core/dist
- name: Publish to Test PyPI
if: "${{ github.event.inputs.test != '' }}"
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PY_PI_TOKEN }}
packages_dir: openworld/sdk/core/dist
42 changes: 0 additions & 42 deletions .github/workflows/generate-and-publish-sdk-experimental.yaml

This file was deleted.

22 changes: 17 additions & 5 deletions .github/workflows/generate-and-publish-sdk.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
# Copyright 2022 Expedia, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Generate and Publish SDK
on:
workflow_dispatch:
inputs:
version:
description: 'Generated SDK version'
description: 'generated sdk version'
OmarAlJarrah marked this conversation as resolved.
Show resolved Hide resolved
required: true
default: ''
name:
description: 'Generated SDK name'
description: 'generated sdk name'
required: true
fileAsBase64:
description: 'Generated SDK file as base64 encoded'
description: 'generated sdk file as base64 encoded'
required: true
test:
description: 'Release to test?'
Expand All @@ -29,5 +43,3 @@ jobs:
needs: [ generate_sdk ]
uses: ./.github/workflows/publish-sdk.yaml
secrets: inherit
with:
test: ${{ github.event.inputs.test }}
47 changes: 0 additions & 47 deletions .github/workflows/generate-sdk-experimental.yaml

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/generate-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
- uses: actions/setup-python@v4
with:
java-version: '11'
distribution: 'adopt'
python-version: '3.10'
- name: generate_sdk
working-directory: generator/scripts
working-directory: openworld/sdk/generator
run: |
echo ${{ github.event.inputs.name }}
./generate.sh -n "${{ inputs.name }}" -v "${{ inputs.version }}" -i "${{ inputs.fileAsBase64 }}"
./scripts/generate-sdk.sh -n "${{ inputs.name }}" -v "${{ inputs.version }}" -i "${{ inputs.fileAsBase64 }}"
- uses: actions/upload-artifact@v3
with:
name: sdk
path: generator/wheels
path: openworld/sdk/generator/package/dist