File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Build Windows binaries
3
3
on :
4
4
- push
5
5
6
+ permissions :
7
+ contents : write
8
+
6
9
jobs :
7
10
windows :
8
11
runs-on : windows-latest
25
28
- uses : actions/checkout@v3
26
29
with :
27
30
path : src
31
+ - run : echo "RELEASE_DATE=$(date --rfc-3339=date)" >> $GITHUB_ENV
28
32
- run : mkdir build
29
33
- run : ../src/.github/do_configure
30
34
working-directory : build
38
42
with :
39
43
name : gdb-win64
40
44
path : install/**/*.*
41
- if-no-files-found : error
45
+ if-no-files-found : error
46
+ - run : zip -r ../gdb.zip *
47
+ working-directory : install
48
+ - uses : ncipollo/release-action@v1
49
+ if : startsWith(github.ref, 'refs/heads/windows-build')
50
+ with :
51
+ name : ${{ env.RELEASE_DATE }}
52
+ tag : release-${{ env.RELEASE_DATE }}
53
+ commit : ${{ github.sha }}
54
+ allowUpdates : True
55
+ omitBody : True
56
+ omitBodyDuringUpdate : True
57
+ omitNameDuringUpdate : True
58
+ artifacts : " gdb.zip"
59
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments