Skip to content

Commit

Permalink
Merge pull request #22 from scottd018/ci-add-pipeline-release
Browse files Browse the repository at this point in the history
ci: add github action for releasing based on tag
  • Loading branch information
paulczar authored Nov 22, 2023
2 parents 1e4a8b4 + 2196d76 commit 599286e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Release
on:
push:
tags:
- '*'

jobs:
galaxy-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get Version
run: |
echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Build and Release
uses: artis3n/ansible_galaxy_collection@v2
with:
api_key: '${{ secrets.ANSIBLE_GALAXY_API_TOKEN }}'
galaxy_version: '${{ env.RELEASE_VERSION }}'
build: true
publish: true

0 comments on commit 599286e

Please sign in to comment.