summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/macos.yml
diff options
context:
space:
mode:
authorRay <[email protected]>2020-08-19 17:20:44 +0200
committerGitHub <[email protected]>2020-08-19 17:20:44 +0200
commitdfb1460236e52874f6550d4580ef7574de0b147b (patch)
treee7fba0b07f83c949986e3200449280b8baeb8e44 /.github/workflows/macos.yml
parent33002a9e91f5161fe418b3a5995791ed351e90be (diff)
downloadraylib-dfb1460236e52874f6550d4580ef7574de0b147b.tar.gz
raylib-dfb1460236e52874f6550d4580ef7574de0b147b.zip
Update macos.yml
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r--.github/workflows/macos.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 7a842ff5..f4577203 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -1,6 +1,10 @@
name: macOS
-on: [push, pull_request]
+on:
+ push:
+ pull_request:
+ release:
+ types: [published]
jobs:
build:
@@ -25,6 +29,7 @@ jobs:
# Generating static + shared library, note that i386 architecture is deprecated
# Defining GL_SILENCE_DEPRECATION because OpenGL is deprecated on macOS
+ # TODO: Support Universal ARCH libraries (build arm64 + x86_64 and merge)
- name: Build Library
run: |
cd src
@@ -45,3 +50,14 @@ jobs:
with:
name: ${{ env.RELEASE_NAME }}.tar.gz
path: ./build/${{ env.RELEASE_NAME }}.tar.gz
+
+ - 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: github.event_name == 'release' && github.event.action == 'published'