From 3f51860f212f40535ec87fb000f13c68e1cd3061 Mon Sep 17 00:00:00 2001 From: "Jens A. Koch" Date: Thu, 11 Jul 2024 02:12:37 +0200 Subject: [PATCH] try automatic relase on tagging --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7876989..2568a41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,8 @@ on: push: branches: - main + tags: + - "*.*.*" pull_request: branches: - main @@ -140,7 +142,8 @@ jobs: name: ${{ env.SWIFTSHADER_ARTIFACT_NAME }} path: ${{ env.SWIFTSHADER_ARTIFACT_ZIPFILE }} -#- name: 📦 🚀 Release -# uses: softprops/action-gh-release@v2 https://github.com/softprops/action-gh-release -# with: -# files: swiftshader/build/swiftshader-win64.zip + - name: 📦 🚀 Release + uses: softprops/action-gh-release@v2 # https://github.com/softprops/action-gh-release + if: startsWith(github.ref, 'refs/tags/') + with: + files: ${{ env.SWIFTSHADER_ARTIFACT_ZIPFILE }}