-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (54 loc) · 1.48 KB
/
artifact.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Artifact
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
branches: [main]
jobs:
artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
coverage: none
tools: composer, cs2pr
- name: Build Artifact
run: |
git submodule update --init --recursive
composer install
composer translations
rm -rf /vendor
composer install --no-dev
cd ${{ github.workspace }}/onlyoffice-wordpress-block
npm install
npm run build
rm -rf node_modules
rm package.json
rm package-lock.json
rm .eslintrc
cd ${{ github.workspace }}
mkdir -p ./deploy/onlyoffice
rsync -av --exclude='deploy' ./ ./deploy/onlyoffice
cd ./deploy/onlyoffice
rm -rf ./.github/
rm -rf ./.git/
rm ./.gitignore
rm composer.json
rm composer.lock
rm .csscomb.json
rm .gitmodules
rm public/assets/document-formats/.git
rm public/assets/document-formats/README.md
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: onlyoffice
path: deploy