We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b6972f commit eea823eCopy full SHA for eea823e
1 file changed
.github/workflows/build.yml
@@ -19,22 +19,22 @@ jobs:
19
with:
20
fetch-depth: 0
21
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
-
29
- name: Deduce tags
30
run: |
31
- exec > source/tags
32
- echo "latest"
+ mkdir source
+ echo "latest" > source/tags
33
if tag=$(git describe --exact-match --tags)
34
then
35
- echo "stable"
36
- echo "$tag"
+ echo "stable" >> source/tags
+ echo "$tag" >> source/tags
37
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
38
39
- name: Upload artifact
40
uses: actions/upload-artifact@v2
0 commit comments