Skip to content

Commit

Permalink
release: add mac binaries, compile on pull requests (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnybod authored Jan 28, 2025
1 parent 4756e76 commit c29a911
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and Publish Self-Contained Assemblies

on:
pull_request:
workflow_dispatch:
inputs:
branch:
Expand All @@ -20,6 +21,8 @@ jobs:
runtime:
- linux-x64
- linux-arm64
- osx-x64
- osx-arm64

steps:
- name: Checkout code
Expand All @@ -42,13 +45,15 @@ jobs:
shell: bash

- name: Create Git tag
if: github.event_name == 'workflow_dispatch'
run: |
git tag ${{ github.event.inputs.release_version }}
git push origin ${{ github.event.inputs.release_version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload release assets
if: github.event_name == 'workflow_dispatch'
uses: softprops/action-gh-release@v2
with:
files: ./publish/${{ matrix.runtime }}/EmpireCompiler-${{ matrix.runtime }}
Expand Down

0 comments on commit c29a911

Please sign in to comment.