Skip to content

Publish to TestPyPi #202

Publish to TestPyPi

Publish to TestPyPi #202

# © 2023 SolarWinds Worldwide, LLC. All rights reserved.
#
# 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: Publish to TestPyPi
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
get_apm_python_version:
name: Get APM Python version
# Outputs sw-apm-version
uses: ./.github/workflows/get_apm_python_version.yaml
build_sdist_and_x86_64:
name: Build sdist and x86_64
needs: get_apm_python_version
# Outputs artifact-name
uses: ./.github/workflows/build_x86_64.yaml
with:
version: ${{ needs.get_apm_python_version.outputs.sw-apm-version }}
scan_sdist_and_x86_64:
name: RL scan sdist and x86_64 build
needs:
- get_apm_python_version
- build_sdist_and_x86_64
uses: ./.github/workflows/reversinglabs_scan.yaml
with:
artifact-name: ${{ needs.build_sdist_and_x86_64.outputs.artifact-name }}
package-name: apm-python-pypi-sdist-x86_64
version: ${{ needs.get_apm_python_version.outputs.sw-apm-version }}
rl-submit-only: false
secrets: inherit
publish_sdist_and_x86_64:
name: Publish sdist and x86_64 to TestPyPI
needs:
- build_sdist_and_x86_64
- scan_sdist_and_x86_64
uses: ./.github/workflows/publish_x86_64.yaml
with:
artifact-name: ${{ needs.build_sdist_and_x86_64.outputs.artifact-name }}
repository-name: testpypi
secrets: inherit
build_aarch64:
name: Build aarch64
needs: get_apm_python_version
# Outputs artifact-name
uses: ./.github/workflows/build_aarch64.yaml
with:
version: ${{ needs.get_apm_python_version.outputs.sw-apm-version }}
scan_aarch64:
name: RL scan aarch64 build
needs:
- get_apm_python_version
- build_aarch64
uses: ./.github/workflows/reversinglabs_scan.yaml
with:
artifact-name: ${{ needs.build_aarch64.outputs.artifact-name }}
package-name: apm-python-pypi-aarch64
version: ${{ needs.get_apm_python_version.outputs.sw-apm-version }}
rl-submit-only: false
secrets: inherit
publish_aarch64:
name: Publish aarch64 to TestPyPI
needs:
- build_aarch64
- scan_aarch64
uses: ./.github/workflows/publish_aarch64.yaml
with:
artifact-name: ${{ needs.build_aarch64.outputs.artifact-name }}
repository-name: testpypi
secrets: inherit