File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- name : hackage
1
+ name : " Release "
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - " wai-saml2-*"
5
+ paths :
6
+ - " .github/workflows/hackage.yml"
7
+ release :
8
+ types :
9
+ - released
10
+ - prereleased
7
11
8
12
jobs :
9
13
publish-to-hackage :
@@ -22,12 +26,16 @@ jobs:
22
26
23
27
- name : Configure stack
24
28
run : |
29
+ echo ${{ github.event.action }}
25
30
mkdir -p ${{ steps.install-haskell.outputs.stack-root }}
26
31
echo "save-hackage-creds: false" >> ${{ steps.install-haskell.outputs.stack-root }}/config.yaml
27
32
33
+ - name : Check source distribution
34
+ run : stack sdist .
35
+
28
36
- name : Publish `wai-saml2`
29
- if : startsWith(github.ref, 'refs/tags/wai-saml2-')
30
- run : stack upload .
37
+ if : startsWith(github.ref, 'refs/tags/wai-saml2-') && github.event.action == 'released'
38
+ run : stack upload . --candidate
31
39
env :
32
40
HACKAGE_USERNAME : ${{ secrets.HACKAGE_USER }}
33
41
HACKAGE_PASSWORD : ${{ secrets.HACKAGE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments