Skip to content

Commit eea823e

Browse files
committed
Fix bad version on stable releases
1 parent 3b6972f commit eea823e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Package Source
23-
run: |
24-
./setgitversion
25-
mkdir source
26-
cabal sdist
27-
mv dist-newstyle/sdist/*.tar.gz source/source.tar.gz
28-
2922
- name: Deduce tags
3023
run: |
31-
exec > source/tags
32-
echo "latest"
24+
mkdir source
25+
echo "latest" > source/tags
3326
if tag=$(git describe --exact-match --tags)
3427
then
35-
echo "stable"
36-
echo "$tag"
28+
echo "stable" >> source/tags
29+
echo "$tag" >> source/tags
3730
fi
31+
cat source/tags
32+
33+
- name: Package Source
34+
run: |
35+
grep "stable" source/tags || ./setgitversion
36+
cabal sdist
37+
mv dist-newstyle/sdist/*.tar.gz source/source.tar.gz
3838
3939
- name: Upload artifact
4040
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)