Skip to content

Commit

Permalink
Fix bad version on stable releases
Browse files Browse the repository at this point in the history
  • Loading branch information
koalaman committed Nov 7, 2021
1 parent 3b6972f commit eea823e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eea823e

Please sign in to comment.