Skip to content

Commit

Permalink
feat: create publish workflow (#17)
Browse files Browse the repository at this point in the history
Massive credit to @danjohnson95
  • Loading branch information
danjohnson95 authored Dec 28, 2023
1 parent 708d8bf commit df5afe4
Show file tree
Hide file tree
Showing 6 changed files with 2,916 additions and 2,880 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Publish

on:
push:

jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, curl, libxml, mbstring, zip
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18.16

- name: Install Composer dependencies
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader

- name: Install Node dependencies
run: npm install

- name: Run install
run: php artisan native:install --force --no-interaction

- name: Run build
run: php artisan native:publish --no-interaction
env:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
NATIVEPHP_APPLE_ID: ${{ secrets.NATIVEPHP_APPLE_ID }}
NATIVEPHP_APPLE_ID_PASS: ${{ secrets.NATIVEPHP_APPLE_ID_PASS }}
NATIVEPHP_APPLE_TEAM_ID: ${{ secrets.NATIVEPHP_APPLE_TEAM_ID }}
GITHUB_REPO: ${{ github.repository }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist/*.dmg
dist/*.zip
dist/*.yml
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"livewire/livewire": "^2.12",
"nativephp/electron": "^0.1.2"
"nativephp/electron": "dev-main#b85fb845c72c0a901c3385807db17507012ae1da",
"nunomaduro/collision": "^7.7",
"spatie/laravel-ignition": "^2.2",
"spatie/laravel-ray": "^1.32"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0",
"spatie/laravel-ray": "^1.31"
"phpunit/phpunit": "^10.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit df5afe4

Please sign in to comment.