Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create publish workflow #17

Merged
merged 29 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a4d9543
feat: create publish workflow
danjohnson95 Aug 14, 2023
ad63f88
Merge branch 'main' of github.com:danjohnson95/larajobs-desktop into …
danjohnson95 Aug 14, 2023
626d7f7
fix: composer install before publishing
danjohnson95 Aug 14, 2023
c871c15
fix: update name
danjohnson95 Aug 14, 2023
2b14872
chore: let's try building first
danjohnson95 Aug 14, 2023
9847a51
chore: run locally for debug
danjohnson95 Aug 14, 2023
63ebe04
chore: bump dependencies
danjohnson95 Aug 14, 2023
65aedba
chore: put back to macos-latest
danjohnson95 Aug 14, 2023
6d0421c
chore: move laravel-ignition from dev to prod
danjohnson95 Aug 14, 2023
7781481
chore: move laravel ray to prod
danjohnson95 Aug 14, 2023
1368513
chore: try self-hosted
danjohnson95 Aug 14, 2023
4a148dc
fix: use ci flag
danjohnson95 Aug 14, 2023
59ffe70
chore: back to GH hosted runner
danjohnson95 Aug 14, 2023
139e247
fix: install
danjohnson95 Aug 14, 2023
f69b617
fix: add force flag
danjohnson95 Aug 14, 2023
6ddb1c8
fix: use --ci flag on install
danjohnson95 Aug 15, 2023
4455cc3
chore: bump package
danjohnson95 Aug 15, 2023
117f9fc
fix: make tailwind a non-dev dependency
danjohnson95 Aug 15, 2023
79d2e64
fix: npm install first
danjohnson95 Aug 15, 2023
d951864
fix: add env for build command
danjohnson95 Aug 15, 2023
f413b80
fix: use publish command
danjohnson95 Aug 15, 2023
5e16874
chore: bump packages
danjohnson95 Aug 15, 2023
8865737
feat: upload artifact afterwards
danjohnson95 Aug 15, 2023
5c5f45a
fix: only upload dmg, zip and yml
danjohnson95 Aug 15, 2023
5a81f99
fix: add keys for notarising
danjohnson95 Aug 16, 2023
cca6ccf
fix: typo
danjohnson95 Aug 16, 2023
fb08fd1
chore: use --no-interaction flag
danjohnson95 Dec 28, 2023
8398eae
chore: bump to latest version of nativephp/electron
danjohnson95 Dec 28, 2023
4ba6446
chore: pass GitHub release config
danjohnson95 Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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