mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-27 18:24:22 +01:00
building intel mac app (#878)
Co-authored-by: Max Novich <mnovich@squareup.com>
This commit is contained in:
83
.github/workflows/pr-comment-bundle-intel.yml
vendored
Normal file
83
.github/workflows/pr-comment-bundle-intel.yml
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
# This workflow is triggered by a comment on an issue or PR with the text ".bundle-intel"
|
||||
# It bundles the Intel Desktop App, then creates a PR comment with a link to download the app.
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
pr_number:
|
||||
description: 'PR number to comment on'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
# permissions needed for reacting to IssueOps commands on PRs
|
||||
permissions:
|
||||
pull-requests: write
|
||||
checks: read
|
||||
|
||||
name: Bundle Intel Desktop App
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
trigger-on-command:
|
||||
name: Trigger on ".bundle-intel" PR comment
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
continue: ${{ steps.command.outputs.continue || github.event_name == 'workflow_dispatch' }}
|
||||
# Cannot use github.event.pull_request.number since the trigger is 'issue_comment'
|
||||
pr_number: ${{ steps.command.outputs.issue_number || github.event.inputs.pr_number }}
|
||||
steps:
|
||||
- if: ${{ github.event_name == 'issue_comment' }}
|
||||
uses: github/command@v1.3.0
|
||||
id: command
|
||||
with:
|
||||
command: ".bundle-intel"
|
||||
skip_reviews: true
|
||||
reaction: "eyes"
|
||||
allowed_contexts: pull_request
|
||||
|
||||
bundle-desktop-intel:
|
||||
# Only run this if ".bundle-intel" command is detected.
|
||||
needs: [trigger-on-command]
|
||||
if: ${{ needs.trigger-on-command.outputs.continue == 'true' }}
|
||||
uses: ./.github/workflows/bundle-desktop-intel.yml
|
||||
with:
|
||||
signing: true
|
||||
secrets:
|
||||
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
|
||||
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
|
||||
pr-comment-intel:
|
||||
name: PR Comment with macOS Intel App
|
||||
runs-on: ubuntu-latest
|
||||
needs: [trigger-on-command, bundle-desktop-intel]
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Download Intel artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: Goose-darwin-x64
|
||||
path: intel-dist
|
||||
|
||||
- name: Comment on PR with Intel download link
|
||||
uses: peter-evans/create-or-update-comment@v4
|
||||
with:
|
||||
issue-number: ${{ needs.trigger-on-command.outputs.pr_number }}
|
||||
body: |
|
||||
### macOS Intel Desktop App (x64)
|
||||
|
||||
[💻 Download macOS Desktop App (Intel x64, signed)](https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/Goose-darwin-x64.zip)
|
||||
|
||||
**Instructions:**
|
||||
After downloading, unzip the file and drag the Goose.app to your Applications folder. The app is signed and notarized for macOS.
|
||||
|
||||
This link is provided by nightly.link and will work even if you're not logged into GitHub.
|
||||
Reference in New Issue
Block a user