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

Updated actions #24

Merged
merged 2 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 6 additions & 4 deletions .github/workflows/buildpackages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
pkgVer: ${{ steps.version.outputs.pkgVer }}
steps:
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Set Build Version
id: version
Expand All @@ -54,7 +54,7 @@ jobs:
image: ${{ inputs.DOCKER_IMAGE }}
steps:
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Build Deployment Package
run: |
Expand All @@ -72,9 +72,11 @@ jobs:
name: Build Python Packages
needs: [set-version]
runs-on: ubuntu-20.04
container:
image: ${{ inputs.DOCKER_IMAGE }}
steps:
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v2
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
image: ${{ inputs.DOCKER_IMAGE }}
steps:
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Try load from cache.
id: third-party-dependencies
Expand Down
170 changes: 85 additions & 85 deletions .github/workflows/publish_artifacts.yaml
Original file line number Diff line number Diff line change
@@ -1,86 +1,86 @@
name: "Publish Artifacts"

on:
workflow_call:
inputs:
COMPONENT:
description: "The component type. i.e. stable, rc, dev, main."
required: true
type: string
UBUNTU_VERSION:
required: true
type: string
distribution:
required: true
type: string
moduleName:
required: true
type: string
secrets:
INDY_ARTIFACTORY_REPO_CONFIG:
required: true
PYPI_API_TOKEN:
required: true


jobs:
publish_artifacts:
name: Publish Artifacts
runs-on: ubuntu-20.04
env:
COMPONENT: ${{ inputs.COMPONENT }}
UBUNTU_VERSION: ${{ inputs.UBUNTU_VERSION }}
steps:
- name: Check out code
uses: actions/checkout@v1

- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v2
env:
JF_ENV_1: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }}

- name: Ping Artifactory
run: |
# Test the connection to Ping the Hyperledger Artifactory server
# to ensure everything has been setup correctly.
jfrog rt ping

- name: Download Artifacts from Pipeline Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ inputs.moduleName }}-deb
path: to_publish

- name: Publish Artifacts
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: ./to_publish
distribution: ${{ inputs.distribution }}
component: ${{ env.COMPONENT }}

- name: Download Artifacts from Pipeline Artifacts
uses: actions/download-artifact@v3
with:
name: third-party-dependencies
path: ./third-party-dependencies_to_publish

- name: Publish 3rd Party Dependencies
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: ./third-party-dependencies_to_publish
distribution: ${{ inputs.distribution }}
component: ${{ env.COMPONENT }}

- name: Download Python Packages from Pipeline Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ inputs.moduleName }}-python
path: dist

- name: Publish Python Package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
name: "Publish Artifacts"
on:
workflow_call:
inputs:
COMPONENT:
description: "The component type. i.e. stable, rc, dev, main."
required: true
type: string
UBUNTU_VERSION:
required: true
type: string
distribution:
required: true
type: string
moduleName:
required: true
type: string
secrets:
INDY_ARTIFACTORY_REPO_CONFIG:
required: true
PYPI_API_TOKEN:
required: true
jobs:
publish_artifacts:
name: Publish Artifacts
runs-on: ubuntu-20.04
env:
COMPONENT: ${{ inputs.COMPONENT }}
UBUNTU_VERSION: ${{ inputs.UBUNTU_VERSION }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v2
env:
JF_ENV_1: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }}
- name: Ping Artifactory
run: |
# Test the connection to Ping the Hyperledger Artifactory server
# to ensure everything has been setup correctly.
jfrog rt ping
- name: Download Artifacts from Pipeline Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ inputs.moduleName }}-deb
path: to_publish
- name: Publish Artifacts
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: ./to_publish
distribution: ${{ inputs.distribution }}
component: ${{ env.COMPONENT }}
- name: Download Artifacts from Pipeline Artifacts
uses: actions/download-artifact@v3
with:
name: third-party-dependencies
path: ./third-party-dependencies_to_publish
- name: Publish 3rd Party Dependencies
uses: hyperledger/indy-shared-gha/.github/actions/publish-deb@v1
with:
sourceDirectory: ./third-party-dependencies_to_publish
distribution: ${{ inputs.distribution }}
component: ${{ env.COMPONENT }}
- name: Download Python Packages from Pipeline Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ inputs.moduleName }}-python
path: dist
- name: Publish Python Package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true