Run Fabric CA with Postgres (#102)
#41
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # 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 }} |