From 209da5902debb5ee6b568b7279525407bf1accb0 Mon Sep 17 00:00:00 2001 From: pthierry Date: Thu, 26 Sep 2024 08:16:59 +0200 Subject: [PATCH] ci: adding jfrog publication --- .github/workflows/publish-to-jfrog.yml | 26 ++++++++++++++++++++++++++ .github/workflows/release-to-jfrog.yml | 25 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/publish-to-jfrog.yml create mode 100644 .github/workflows/release-to-jfrog.yml diff --git a/.github/workflows/publish-to-jfrog.yml b/.github/workflows/publish-to-jfrog.yml new file mode 100644 index 0000000..e4c732e --- /dev/null +++ b/.github/workflows/publish-to-jfrog.yml @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Upload Python Package to jfrog + +on: + push: + branches: + - main + +jobs: + pubhlish: + permissions: + id-token: write + contents: read + attestations: write + uses: outpost-os/pipeline-python/.github/workflows/publish.yml@main + with: + environment: publish + runner: outpost-os-shared-small + python-version: '3.10' + build-name: svd2json-dev + module-name: svd2json + repo-name: outpost-pypi-dev-green + virtual-repo-name: outpost-pypi-virtual-green diff --git a/.github/workflows/release-to-jfrog.yml b/.github/workflows/release-to-jfrog.yml new file mode 100644 index 0000000..70f89b3 --- /dev/null +++ b/.github/workflows/release-to-jfrog.yml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2024 Ledger SAS +# +# SPDX-License-Identifier: Apache-2.0 + +name: Upload Python Package to jfrog + +on: + release: + types: [released] + +jobs: + pubhlish: + permissions: + id-token: write + contents: read + attestations: write + uses: outpost-os/pipeline-python/.github/workflows/publish.yml@main + with: + environment: publish + runner: outpost-os-shared-small + python-version: '3.10' + build-name: svd2json-release + module-name: svd2json + repo-name: outpost-pypi-prod-public + virtual-repo-name: outpost-pypi-virtual-green