-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 1.27 KB
/
deploy.yml
File metadata and controls
40 lines (37 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: bowphp-docs
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
php-version: [8.2]
os: [ubuntu-latest]
name: build php-${{ matrix.php-version }} / node-${{ matrix.node-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysql, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i --legacy-peer-deps
- run: npm run build --if-present
- name: Copy folder content recursively to remote
uses: garygrossgarten/github-action-scp@release
with:
local: build
recursive: true
remote: bowphp.com
host: ${{ secrets.BOWPHP_WEBSITE_REMOTE_HOST }}
username: ${{ secrets.BOWPHP_WEBSITE_REMOTE_USER }}
password: ${{ secrets.BOWPHP_WEBSITE_REMOTE_PASSWORD }}