Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Nov 5, 2024
1 parent c5763b7 commit 32f45c7
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,24 @@ jobs:
COLLECTION_FILE=$(ls *.tar.gz)
echo "COLLECTION_FILE=${COLLECTION_FILE}" >> $GITHUB_ENV
# Create a release
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag: ${{ github.ref }} # Use the pushed tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions

# Upload the collection file to the release
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v1
with:
upload_url: "${{ github.event.release.upload_url }}"
asset_path: "${{ env.COLLECTION_FILE }}"
asset_name: "${{ env.COLLECTION_FILE }}"
asset_content_type: application/gzip
tag: ${{ github.ref }} # Use the same tag
files: ${{ env.COLLECTION_FILE }} # The file to upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions


# Publish the collection to Ansible Galaxy
- name: Publish to Ansible Galaxy
Expand Down

0 comments on commit 32f45c7

Please sign in to comment.