Skip to content

Commit

Permalink
ci: Add Ansible Galaxy publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBedard committed Aug 20, 2024
1 parent 46c176c commit 1f9332e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/galaxy_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and publish to Ansible Galaxy

on:
push:
workflow_dispatch:

jobs:
build:
environment: publish
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: ansible-galaxy collection build

- name: Publish to Ansible Galaxy
run: ansible-galaxy collection publish *.tar.gz --api-key ${{ secrets.ANSIBLE_GALAXY_TOKEN }}

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ansible-dvls-collection
path: '*.tar.gz'

0 comments on commit 1f9332e

Please sign in to comment.