mirror of
https://github.com/NohamR/MasterPDFEditor-patch.git
synced 2026-10-11 02:29:51 +00:00
44 lines
983 B
YAML
44 lines
983 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Build dylib
|
|
run: make
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: MasterPDFEditor.dylib
|
|
path: MasterPDFEditor.dylib
|
|
|
|
release:
|
|
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: MasterPDFEditor.dylib
|
|
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: build-${{ github.run_number }}
|
|
name: Build #${{ github.run_number }}
|
|
draft: true
|
|
files: MasterPDFEditor.dylib
|
|
generate_release_notes: false |