Skip to content

Commit

Permalink
Enforced LF
Browse files Browse the repository at this point in the history
Signed-off-by: pSchlarb <p.schlarb@esatus.com>
  • Loading branch information
pSchlarb authored and WadeBarnes committed Apr 12, 2023
1 parent f69a182 commit dd02900
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 85 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
**/.github text eol=lf
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@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
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

0 comments on commit dd02900

Please sign in to comment.