Skip to content

Run Fabric CA with Postgres (#102) #41

Run Fabric CA with Postgres (#102)

Run Fabric CA with Postgres (#102) #41

Workflow file for this run

#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Publish Ansible collection
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
runs-on: ubuntu-latest
steps:
# Checkout the repository code
- name: Checkout code
uses: actions/checkout@v4
# Set up Python environment for Ansible
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
# Install ansible-core
- name: Install dependencies
run: |
pip install ansible-core yq
# Build the collection
- name: Build collection
run: |
ansible-galaxy collection build
# Publish the collection to Ansible Galaxy
- name: Publish collection to Ansible Galaxy
run: |
VERSION=$(yq -r .version galaxy.yml)
ansible-galaxy collection publish hyperledger-fabricx-${VERSION}.tar.gz --api-key ${{ secrets.ANSIBLE_GALAXY_API_KEY }}