diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb23dc7..13976f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,18 +16,15 @@ jobs: steps: - name: checkout uses: actions/checkout@v3 - - name: Create Tag and Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create release + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.event.inputs.version }} - release_name: Release ${{ github.event.inputs.version }} + artifacts: "release.tar.gz,foo/*.txt" body: ${{ github.event.inputs.description }} - draft: false - prerelease: false + tag: ${{ github.event.inputs.version }} + skipIfReleaseExists: true - name: Publish to Ansible Galaxy - uses: robertdebock/galaxy-action@1.1.0 + uses: robertdebock/galaxy-action@1.2.1 with: galaxy_api_key: ${{ secrets.galaxy_api_key }} + git_branch: main