Skip to content

Artifact

Artifact #18

Workflow file for this run

name: Artifact
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
branches: [master]
jobs:
artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Artifact
run: |
cd ${{ github.workspace }}
cwd=$(pwd)
git submodule update --init --recursive
mkdir -p ./deploy/onlyoffice
rsync -av --exclude='deploy' ./ ./deploy/onlyoffice
cd ./deploy/onlyoffice
composer install
rm -rf ./.github
rm -rf ./.git/
rm ./.gitignore
rm ./.gitmodules
rm -rf ./vendor/onlyoffice/docs-integration-sdk/resources/assets/document-templates
mv ./vendor/onlyoffice/docs-integration-sdk/resources/assets/document-formats/onlyoffice-docs-formats.json ./vendor/onlyoffice/docs-integration-sdk/resources/assets/document-formats/onlyoffice-docs-formats.txt
rm ./composer.json
rm ./composer.lock
find ./vendor -type f -iname '*.json' -delete
find ./vendor -type f -iname '*.lock' -delete
find ./vendor -type f -iname 'LICENSE' -delete
cd ./assets
rm .git
cd $cwd
awk '/## [0-9]/{p++} p; /## [0-9]/{if (p > 1) exit}' CHANGELOG.md | awk 'NR>2 {print last} {last=$0}' > RELEASE.md
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: onlyoffice
path: deploy