The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Nextcloud
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
onlyoffice-nextcloud/.github/workflows/artifact.yml

57 lines
1.5 KiB

name: Artifact
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Get Info
run: |
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
id: info
- name: Build Artifact
run: |
cd ${{ github.workspace }}
cwd=$(pwd)
git submodule update --init --recursive
npm install
npm run build
composer install --no-dev --optimize-autoloader
mkdir -p onlyoffice
rsync -av --exclude='onlyoffice' . onlyoffice
cd onlyoffice
rm -rf ./.github/
rm -rf ./.git/
rm -rf ./assets/document-templates/.git
rm -rf ./assets/document-formats/.git
rm -rf ./node_modules/
rm -rf ./src/
rm ./.eslintrc.js
rm ./.gitignore
rm ./.gitmodules
rm ./.stylelintrc.json
rm ./composer.json
rm ./composer.lock
rm ./npm-shrinkwrap.json
rm ./package.json
rm ./ruleset.xml
rm ./stylelint.config.js
rm ./webpack.js
cd $cwd
tar -czvf onlyoffice.tar.gz onlyoffice
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: onlyoffice
path: onlyoffice.tar.gz