diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml index 25b8c10..503fe93 100644 --- a/.github/workflows/build-deb.yml +++ b/.github/workflows/build-deb.yml @@ -6,6 +6,8 @@ on: # - 'v*' #branches: [ master ] + release: + types: [published] jobs: build: @@ -32,12 +34,18 @@ jobs: - name: Prepare Theos uses: Randomblock1/theos-action@v1 + - name: Get tag + if: ${{ startsWith(github.ref, 'refs/tags/') }} + id: tag + uses: dawidd6/action-get-tag@v1 - name: Build Release package - Rootful Substrate + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: | make clean TAGNAME=${{ steps.tag.outputs.tag }} make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootful - name: Build Release package - Rootless Substrate + if: ${{ startsWith(github.ref, 'refs/tags/') }} run: | make clean TAGNAME=${{ steps.tag.outputs.tag }}