mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
31 lines
952 B
YAML
31 lines
952 B
YAML
name: Artifact PHP
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master]
|
|
paths: ['web/documentserver-example/php/**']
|
|
pull_request:
|
|
branches: [master]
|
|
paths: ['web/documentserver-example/php/**']
|
|
|
|
jobs:
|
|
artifact:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
- name: Build Artifact
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
git submodule update --init --recursive
|
|
cd ./web/documentserver-example/php
|
|
mkdir -p ./deploy/'PHP Example'
|
|
rsync -av --exclude='deploy' ./ ./deploy/'PHP Example'
|
|
rm -rf ./deploy/'PHP Example'/assets/document-formats/.git
|
|
rm -rf ./deploy/'PHP Example'/assets/document-templates/.git
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: PHP.Example
|
|
path: ${{ github.workspace }}/web/documentserver-example/php/deploy |