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

Enforced LF #25

Merged
merged 1 commit 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
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