Fix bad version on stable releases
This commit is contained in:
parent
3b6972fbf1
commit
eea823e3d0
|
@ -19,22 +19,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Deduce tags
|
||||||
run: |
|
run: |
|
||||||
exec > source/tags
|
mkdir source
|
||||||
echo "latest"
|
echo "latest" > source/tags
|
||||||
if tag=$(git describe --exact-match --tags)
|
if tag=$(git describe --exact-match --tags)
|
||||||
then
|
then
|
||||||
echo "stable"
|
echo "stable" >> source/tags
|
||||||
echo "$tag"
|
echo "$tag" >> source/tags
|
||||||
fi
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
Loading…
Reference in New Issue