diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7b2784..091af0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,11 +2,7 @@ name: build on: push: - branches: - - '*' - pull_request: - branches: - - '*' + env: CACHE_VERSION: 6 DEBIAN_FRONTEND: noninteractive @@ -62,6 +58,15 @@ jobs: name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *.tar.gz linux-armhf: runs-on: ubuntu-20.04 @@ -111,6 +116,15 @@ jobs: name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *.tar.gz linux-i686: runs-on: ubuntu-20.04 @@ -156,6 +170,15 @@ jobs: name: ${{ github.event.repository.name }}-linux-i686-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *.tar.gz linux-x86_64: runs-on: ubuntu-20.04 @@ -193,6 +216,15 @@ jobs: name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *.tar.gz linux-x86_64-debug: runs-on: ubuntu-20.04 @@ -286,6 +318,15 @@ jobs: name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *-macOS.pkg + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *-macOS.pkg modduo: runs-on: ubuntu-20.04 @@ -445,6 +486,15 @@ jobs: name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *.zip + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *.zip win64: runs-on: ubuntu-20.04 @@ -486,6 +536,15 @@ jobs: name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | *.zip + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + *.zip source-tarball: runs-on: ubuntu-20.04 @@ -511,6 +570,17 @@ jobs: /home/runner/cardinal*.tar.xz /home/runner/*/cardinal*.tar.xz /home/runner/*/*/cardinal*.tar.xz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: true + prerelease: true + files: | + /home/runner/cardinal*.tar.xz + /home/runner/*/cardinal*.tar.xz + /home/runner/*/*/cardinal*.tar.xz plugin-validation: runs-on: ubuntu-20.04