diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 22852b2..1a38909 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -32,3 +32,8 @@ jobs: ghcr.io/${{ github.repository }}:${{ inputs.tag-name }} cache-from: type=gha cache-to: type=gha,mode=max + - name: add an Asset(compose.yml) to the Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload ${{ inputs.tag-name }} compose.yml --clobber diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 23808f5..764435b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -30,13 +30,6 @@ jobs: echo "release-created: ${{ steps.release-please-action.outputs.release_created }}" echo "tag-name: ${{ steps.release-please-action.outputs.tag_name }}" echo "version: ${{ steps.release-please-action.outputs.major }}.${{ steps.release-please-action.outputs.minor }}.${{ steps.release-please-action.outputs.patch }}" - - name: Upload compose.yml - if: ${{ steps.release-please-action.outputs.release_created}} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh release upload ${{ steps.release-please-action.outputs.tag_name }} compose.yml --clobber - release-package: needs: release-please if: ${{ needs.release-please.outputs.release-created }}