summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorRay <[email protected]>2020-08-18 13:51:25 +0200
committerGitHub <[email protected]>2020-08-18 13:51:25 +0200
commit3d24dbc7b4e6ad2774d176b4c92dd87f160e9461 (patch)
treedba74d589d0270d95cf23def519fd5cd0dceb1d0 /.github
parent2a198651de2dc4f86645562e3a1f682edc49e962 (diff)
downloadraylib-3d24dbc7b4e6ad2774d176b4c92dd87f160e9461.tar.gz
raylib-3d24dbc7b4e6ad2774d176b4c92dd87f160e9461.zip
Update windows.yml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 11b9e56f..fd42c3db 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -1,6 +1,10 @@
name: Windows
-on: [push, pull_request]
+on:
+ push:
+ pull_request:
+ release:
+ types: [published]
jobs:
build:
@@ -84,3 +88,16 @@ jobs:
with:
name: ${{ env.RELEASE_NAME }}.zip
path: ./build/${{ env.RELEASE_NAME }}.zip
+
+ - name: Upload Artifact to Release
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: ./build/${{ env.RELEASE_NAME }}.zip
+ asset_name: ${{ env.RELEASE_NAME }}.zip
+ asset_content_type: application/zip
+ if: release.published == true
+
+