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 32f45c7 commit 1ba2cdb
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,15 @@ jobs:
COLLECTION_FILE=$(ls *.tar.gz)
echo "COLLECTION_FILE=${COLLECTION_FILE}" >> $GITHUB_ENV
# Create a release
- name: Create Release
# Create a release and upload
- name: Create Release and upload
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag: ${{ github.ref }} # Use the pushed tag
files: ${{ env.COLLECTION_FILE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions

# Upload the collection file to the release
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
with:
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
env:
Expand Down

0 comments on commit 1ba2cdb

Please sign in to comment.