From 505e2443e3d39a2c633b70b3826c49ab8d7fe6c6 Mon Sep 17 00:00:00 2001 From: Viviana Monsalve Date: Wed, 5 Jun 2024 21:01:28 -0500 Subject: [PATCH 1/2] Release triggered by tags instead of release --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c5ef31991..6ddb028ae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,7 +51,7 @@ jobs: release: # only run if the commit is tagged... - if: github.event_name == 'release' + if: contains(github.ref, 'refs/tags/') # ... and it builds successfully needs: - build From 48a7ffc5adc9fab0094544b554744520ec8ecc59 Mon Sep 17 00:00:00 2001 From: Viviana Monsalve Date: Thu, 6 Jun 2024 13:18:25 -0500 Subject: [PATCH 2/2] Create release step added --- .github/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6ddb028ae..95d8cabe4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -74,3 +74,9 @@ jobs: tag: ${{ github.ref }} overwrite: true body: "Production ready fonts" + - name: Check for release + id: create_release + run: | + if ! gh release view ${{ github.ref_name }}; then + git show -s --format=%B ${{ github.ref_name }} | tail -n +4 | gh release create ${{ github.ref_name }} -t ${{ github.ref_name }} -F - + fi