Skip to content

Commit 462c60f

Browse files
committed
Autorelease
1 parent 2fab06c commit 462c60f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/build.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build Windows binaries
33
on:
44
- push
55

6+
permissions:
7+
contents: write
8+
69
jobs:
710
windows:
811
runs-on: windows-latest
@@ -25,6 +28,7 @@ jobs:
2528
- uses: actions/checkout@v3
2629
with:
2730
path: src
31+
- run: echo "RELEASE_DATE=$(date --rfc-3339=date)" >> $GITHUB_ENV
2832
- run: mkdir build
2933
- run: ../src/.github/do_configure
3034
working-directory: build
@@ -38,4 +42,18 @@ jobs:
3842
with:
3943
name: gdb-win64
4044
path: install/**/*.*
41-
if-no-files-found: error
45+
if-no-files-found: error
46+
- run: zip ../gdb.zip *
47+
working-directory: install
48+
- uses: ncipollo/release-action@v1
49+
if: startsWith(github.ref, 'refs/heads/windows-update')
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 }}

0 commit comments

Comments
 (0)