From eea823e3d088c0bcf048dae9ad9c321be09560ad Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 6 Nov 2021 22:05:19 -0700 Subject: [PATCH] Fix bad version on stable releases --- .github/workflows/build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e28a43f..5595219 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,22 +19,22 @@ jobs: with: fetch-depth: 0 - - name: Package Source - run: | - ./setgitversion - mkdir source - cabal sdist - mv dist-newstyle/sdist/*.tar.gz source/source.tar.gz - - name: Deduce tags run: | - exec > source/tags - echo "latest" + mkdir source + echo "latest" > source/tags if tag=$(git describe --exact-match --tags) then - echo "stable" - echo "$tag" + echo "stable" >> source/tags + echo "$tag" >> source/tags fi + cat source/tags + + - name: Package Source + run: | + grep "stable" source/tags || ./setgitversion + cabal sdist + mv dist-newstyle/sdist/*.tar.gz source/source.tar.gz - name: Upload artifact uses: actions/upload-artifact@v2