-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: workflow to upload theme directory artifact
- Loading branch information
1 parent
b4c169d
commit 384df45
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
pull_request: # remove before merging | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: Install PHP dependencies with Composer | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: '7.4' | ||
version: 2.x | ||
|
||
# - name: Run tests | ||
# run: npm test | ||
|
||
- name: Build theme | ||
run: npm run build:prod | ||
|
||
- name: Upload theme | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: theme-dir | ||
path: theme |