From a94d931dbf3344b51b19a8730e8db56681f90dbf Mon Sep 17 00:00:00 2001 From: Samnang Chhun Date: Wed, 26 Oct 2022 15:46:25 +0700 Subject: [PATCH] fix: Add more assets to Github Release --- .github/workflows/build.yml | 12 ++++++++---- .github/workflows/release-please.yml | 14 -------------- 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4bbe18..2a999c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,10 +64,14 @@ jobs: - uses: google-github-actions/release-please-action@v3 + id: release-please with: release-type: node package-name: somleng-sms-gateway - extra-files: | - "${{ steps.generate_dist.outputs.linux_pkg }}" - "${{ steps.generate_dist.outputs.macos_pkg }}" - "${{ steps.generate_dist.outputs.win_pkg }}" + + - name: Add assets to Github Release + if: ${{ steps.release-please.outputs.release_created }} + run: | + gh release upload ${{ steps.release-please.outputs.tag_name }} ${{ steps.generate_dist.outputs.linux_pkg }} + gh release upload ${{ steps.release-please.outputs.tag_name }} ${{ steps.generate_dist.outputs.macos_pkg }} + gh release upload ${{ steps.release-please.outputs.tag_name }} ${{ steps.generate_dist.outputs.win_pkg }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 624a419..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,14 +0,0 @@ -on: - push: - branches: - - main - -name: release-please -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - with: - release-type: node - package-name: somleng-sms-gateway