From 1954b058b57c44b0b6a3e8da914eee16936e84e6 Mon Sep 17 00:00:00 2001 From: Raiga SASAYAMA Date: Sun, 10 Sep 2023 22:45:54 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci/release):=20Asset=E3=81=AE=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E3=81=AE=E3=82=B8=E3=83=A7=E3=83=96=E3=81=AE=E7=A7=BB?= =?UTF-8?q?=E8=A1=8C=EF=BD=A4with=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 5 +++++ .github/workflows/release-please.yml | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) 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 }}