Skip to content

Commit

Permalink
Build collection tarball on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
bkabrda committed Sep 24, 2024
1 parent c021f54 commit a39f4e9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/collection-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build collection
on:
push:
tags:
- '*'

jobs:
ansible-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build collection
run: |
python -m pip install --upgrade pip
pip install -r requirements-testing.txt
ansible-galaxy collection build -vvv --force
sha256sum redhat-artifact_signer-*.tar.gz
- name: Upload collection tarball
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
path: redhat-artifact_signer-*.tar.gz
retention-days: 60
if-no-files-found: error
- name: Output artifact ID
run: echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}'

0 comments on commit a39f4e9

Please sign in to comment.