mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
Merge remote-tracking branch 'remotes/origin/release/1.7.0' into develop
This commit is contained in:
6
.github/workflows/artifact-csharp-mvc.yml
vendored
6
.github/workflows/artifact-csharp-mvc.yml
vendored
@ -21,11 +21,9 @@ jobs:
|
|||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/csharp-mvc
|
cd ./web/documentserver-example/csharp-mvc
|
||||||
mkdir -p ./deploy/'DotNet (Csharp MVN) Example'
|
mkdir -p ./deploy/'DotNet (Csharp MVC) Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'DotNet (Csharp MVC) Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'DotNet (Csharp MVC) Example'
|
||||||
cd ./deploy/'DotNet (Csharp MVC) Example'/assets
|
rm -rf ./deploy/'DotNet (Csharp MVC) Example'/assets/.git
|
||||||
rm -rf ./.git/
|
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
.github/workflows/artifact-csharp.yml
vendored
5
.github/workflows/artifact-csharp.yml
vendored
@ -18,14 +18,11 @@ jobs:
|
|||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/csharp
|
cd ./web/documentserver-example/csharp
|
||||||
mkdir -p ./deploy/'DotNet (Csharp) Example'
|
mkdir -p ./deploy/'DotNet (Csharp) Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'DotNet (Csharp) Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'DotNet (Csharp) Example'
|
||||||
cd ./deploy/'DotNet (Csharp) Example'/assets
|
rm -rf ./deploy/'DotNet (Csharp) Example'/assets/.git
|
||||||
rm -rf ./.git/
|
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/artifact-java.yml
vendored
6
.github/workflows/artifact-java.yml
vendored
@ -18,14 +18,12 @@ jobs:
|
|||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/java
|
cd ./web/documentserver-example/java
|
||||||
mkdir -p ./deploy/'Java Example'
|
mkdir -p ./deploy/'Java Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'Java Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'Java Example'
|
||||||
cd ./deploy/'Java Example'/src/main/resources/assets
|
rm -rf ./deploy/'Java Example'/src/main/resources/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./deploy/'Java Example'/src/main/resources/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/artifact-node.yml
vendored
6
.github/workflows/artifact-node.yml
vendored
@ -18,14 +18,12 @@ jobs:
|
|||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/nodejs
|
cd ./web/documentserver-example/nodejs
|
||||||
mkdir -p ./deploy/'Node.js Example'
|
mkdir -p ./deploy/'Node.js Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'Node.js Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'Node.js Example'
|
||||||
cd ./deploy/'Node.js Example'/public/assets
|
rm -rf ./deploy/'Node.js Example'/public/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./deploy/'Node.js Example'/public/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/artifact-php.yml
vendored
6
.github/workflows/artifact-php.yml
vendored
@ -18,14 +18,12 @@ jobs:
|
|||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/php
|
cd ./web/documentserver-example/php
|
||||||
mkdir -p ./deploy/'PHP Example'
|
mkdir -p ./deploy/'PHP Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'PHP Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'PHP Example'
|
||||||
cd ./deploy/'PHP Example'/assets
|
rm -rf ./deploy/'PHP Example'/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./deploy/'PHP Example'/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/artifact-python.yml
vendored
6
.github/workflows/artifact-python.yml
vendored
@ -18,14 +18,12 @@ jobs:
|
|||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/python
|
cd ./web/documentserver-example/python
|
||||||
mkdir -p ./deploy/'Python Example'
|
mkdir -p ./deploy/'Python Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'Python Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'Python Example'
|
||||||
cd ./deploy/'Python Example'/assets
|
rm -rf ./deploy/'Python Example'/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./deploy/'Python Example'/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/artifact-ruby.yml
vendored
6
.github/workflows/artifact-ruby.yml
vendored
@ -18,14 +18,12 @@ jobs:
|
|||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ./web/documentserver-example/ruby
|
cd ./web/documentserver-example/ruby
|
||||||
mkdir -p ./deploy/'Ruby Example'
|
mkdir -p ./deploy/'Ruby Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'Ruby Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'Ruby Example'
|
||||||
cd ./deploy/'Ruby Example'/public/assets
|
rm -rf ./deploy/'Ruby Example'/public/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./deploy/'Ruby Example'/public/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
.github/workflows/artifact-spring.yml
vendored
5
.github/workflows/artifact-spring.yml
vendored
@ -23,9 +23,8 @@ jobs:
|
|||||||
cd ./web/documentserver-example/java-spring
|
cd ./web/documentserver-example/java-spring
|
||||||
mkdir -p ./deploy/'Java Spring Example'
|
mkdir -p ./deploy/'Java Spring Example'
|
||||||
rsync -av --exclude='deploy' ./ ./deploy/'Java Spring Example'
|
rsync -av --exclude='deploy' ./ ./deploy/'Java Spring Example'
|
||||||
cd ./deploy/'Java Spring Example'/src/main/resources/assets
|
rm -rf ./deploy/'Java Spring Example'/src/main/resources/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./deploy/'Java Spring Example'/src/main/resources/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/lint-python.yml
vendored
6
.github/workflows/lint-python.yml
vendored
@ -32,9 +32,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Lint Flake8
|
- name: Lint Flake8
|
||||||
run: |
|
run: |
|
||||||
flake8 ./**/*.py --count --select=E9,F63,F7,F82 --show-source --statistics
|
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
flake8 ./**/*.py --count --max-complexity=10 --max-line-length=79 --statistics
|
flake8 --count --max-complexity=10 --max-line-length=79 --statistics
|
||||||
|
|
||||||
- name: Lint Pylint
|
- name: Lint Pylint
|
||||||
run: |
|
run: |
|
||||||
pylint ./**/*.py
|
find . -type f -name "*.py" | xargs pylint
|
||||||
|
|||||||
32
.github/workflows/lint-ruby.yml
vendored
32
.github/workflows/lint-ruby.yml
vendored
@ -16,16 +16,22 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: ./web/documentserver-example/ruby
|
working-directory: ./web/documentserver-example/ruby
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: ruby/setup-ruby@v1
|
|
||||||
with:
|
- name: Setup Ruby
|
||||||
ruby-version: '3.0'
|
uses: ruby/setup-ruby@v1
|
||||||
bundler-cache: true
|
with:
|
||||||
- name: Install dependencies
|
ruby-version: '3.2.2'
|
||||||
run: |
|
|
||||||
bundle install
|
- name: Update Submodules
|
||||||
- name: Rubocop
|
run: |
|
||||||
run: |
|
git submodule update --init --recursive
|
||||||
gem install rubocop
|
|
||||||
rubocop
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
bundle update
|
||||||
|
|
||||||
|
- name: Rubocop
|
||||||
|
run: |
|
||||||
|
bundle exec rubocop
|
||||||
|
|||||||
59
.github/workflows/release.yml
vendored
59
.github/workflows/release.yml
vendored
@ -13,8 +13,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Zip
|
- name: Clone Submodules
|
||||||
run: sudo apt-get install zip
|
run: |
|
||||||
|
cd ${{ github.workspace }}
|
||||||
|
git submodule update --init --recursive
|
||||||
- name: Get Info
|
- name: Get Info
|
||||||
run: |
|
run: |
|
||||||
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
|
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
|
||||||
@ -25,91 +27,66 @@ jobs:
|
|||||||
- name: Build Csharp MVC Artifact
|
- name: Build Csharp MVC Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/csharp-mvc
|
cd ./web/documentserver-example/csharp-mvc
|
||||||
mkdir -p ./'DotNet (Csharp MVC) Example'
|
mkdir -p ./'DotNet (Csharp MVC) Example'
|
||||||
rsync -av --exclude='DotNet (Csharp MVC) Example' ./ ./'DotNet (Csharp MVC) Example'
|
rsync -av --exclude='DotNet (Csharp MVC) Example' ./ ./'DotNet (Csharp MVC) Example'
|
||||||
cd ./'DotNet (Csharp MVC) Example'/assets
|
cd ./'DotNet (Csharp MVC) Example'/assets
|
||||||
rm -rf ./.git/
|
rm -rf .git
|
||||||
rm .git
|
|
||||||
- name: Build Csharp Artifact
|
- name: Build Csharp Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/csharp
|
cd ./web/documentserver-example/csharp
|
||||||
mkdir -p ./'DotNet (Csharp) Example'
|
mkdir -p ./'DotNet (Csharp) Example'
|
||||||
rsync -av --exclude='DotNet (Csharp) Example' ./ ./'DotNet (Csharp) Example'
|
rsync -av --exclude='DotNet (Csharp) Example' ./ ./'DotNet (Csharp) Example'
|
||||||
cd ./'DotNet (Csharp) Example'/assets
|
rm -rf ./'DotNet (Csharp) Example'/assets/.git
|
||||||
rm -rf ./.git/
|
|
||||||
rm .git
|
|
||||||
- name: Build Java Artifact
|
- name: Build Java Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/java
|
cd ./web/documentserver-example/java
|
||||||
mkdir -p ./'Java Example'
|
mkdir -p ./'Java Example'
|
||||||
rsync -av --exclude='Java Example' ./ ./'Java Example'
|
rsync -av --exclude='Java Example' ./ ./'Java Example'
|
||||||
cd ./'Java Example'/src/main/resources/assets
|
rm -rf ./'Java Example'/src/main/resources/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./'Java Example'/src/main/resources/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Build Nodejs Artifact
|
- name: Build Nodejs Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/nodejs
|
cd ./web/documentserver-example/nodejs
|
||||||
mkdir -p ./'Node.js Example'
|
mkdir -p ./'Node.js Example'
|
||||||
rsync -av --exclude='Node.js Example' ./ ./'Node.js Example'
|
rsync -av --exclude='Node.js Example' ./ ./'Node.js Example'
|
||||||
cd ./'Node.js Example'/public/assets
|
rm -rf ./'Node.js Example'/public/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./'Node.js Example'/public/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Build PHP Artifact
|
- name: Build PHP Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/php
|
cd ./web/documentserver-example/php
|
||||||
mkdir -p ./'PHP Example'
|
mkdir -p ./'PHP Example'
|
||||||
rsync -av --exclude='PHP Example' ./ ./'PHP Example'
|
rsync -av --exclude='PHP Example' ./ ./'PHP Example'
|
||||||
cd ./'PHP Example'/assets
|
rm -rf ./'PHP Example'/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./'PHP Example'/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Build Python Artifact
|
- name: Build Python Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/python
|
cd ./web/documentserver-example/python
|
||||||
mkdir -p ./'Python Example'
|
mkdir -p ./'Python Example'
|
||||||
rsync -av --exclude='Python Example' ./ ./'Python Example'
|
rsync -av --exclude='Python Example' ./ ./'Python Example'
|
||||||
cd ./'Python Example'/assets
|
rm -rf ./'Python Example'/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./'Python Example'/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Build Ruby Artifact
|
- name: Build Ruby Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/ruby
|
cd ./web/documentserver-example/ruby
|
||||||
mkdir -p ./'Ruby Example'
|
mkdir -p ./'Ruby Example'
|
||||||
rsync -av --exclude='Ruby Example' ./ ./'Ruby Example'
|
rsync -av --exclude='Ruby Example' ./ ./'Ruby Example'
|
||||||
cd ./'Ruby Example'/public/assets
|
rm -rf ./'Ruby Example'/public/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./'Ruby Example'/public/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Build Spring Artifact
|
- name: Build Spring Artifact
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
cwd=$(pwd)
|
|
||||||
git submodule update --init --recursive
|
|
||||||
cd ./web/documentserver-example/java-spring
|
cd ./web/documentserver-example/java-spring
|
||||||
mkdir -p ./'Java Spring Example'
|
mkdir -p ./'Java Spring Example'
|
||||||
rsync -av --exclude='Java Spring Example' ./ ./'Java Spring Example'
|
rsync -av --exclude='Java Spring Example' ./ ./'Java Spring Example'
|
||||||
cd ./'Java Spring Example'/src/main/resources/assets
|
rm -rf ./'Java Spring Example'/src/main/resources/assets/document-formats/.git
|
||||||
rm -rf ./.git/
|
rm -rf ./'Java Spring Example'/src/main/resources/assets/document-templates/.git
|
||||||
rm .git
|
|
||||||
- name: Pack Artifacts
|
- name: Pack Artifacts
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}/web/documentserver-example/csharp-mvc
|
cd ${{ github.workspace }}/web/documentserver-example/csharp-mvc
|
||||||
|
|||||||
@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
document-server:
|
document-server:
|
||||||
container_name: document-server
|
container_name: document-server
|
||||||
image: onlyoffice/documentserver:7.3.3.50
|
image: onlyoffice/documentserver:7.5
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
document-server:
|
document-server:
|
||||||
container_name: document-server
|
container_name: document-server
|
||||||
image: onlyoffice/documentserver:7.3.3.50
|
image: onlyoffice/documentserver:7.5
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
document-server:
|
document-server:
|
||||||
container_name: document-server
|
container_name: document-server
|
||||||
image: onlyoffice/documentserver:7.3.3.50
|
image: onlyoffice/documentserver:7.5
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user