Skip to content

Commit

Permalink
Test release
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Apr 26, 2024
1 parent 29d09a4 commit 324514d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ name: Deploy Collection

# Trigger the workflow however you prefer
on:
release:
types:
- published
workflow_dispatch:
release:
types:
- published

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get the version name from the tags
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Build and Deploy Collection
uses: artis3n/ansible_galaxy_collection@v2
with:
api_key: "${{ secrets.GALAXY_API_KEY }}"
galaxy_version: "${{ env.RELEASE_VERSION }}"
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - name: Get the version name from the tags
# run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Build and Deploy Collection
uses: artis3n/ansible_galaxy_collection@v2
with:
api_key: "${{ secrets.GALAXY_API_KEY }}"
# galaxy_version: "${{ env.RELEASE_VERSION }}"
galaxy_version: "1.0.0" # Testing
publish: false # Testing
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
ansible.cfg
inventory
test.yml
__pycache__
__pycache__
infisical-vault-1.0.0.tar.gz

0 comments on commit 324514d

Please sign in to comment.