Skip to content

Commit

Permalink
ci: added webpack build to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Antipkin-A committed Dec 6, 2023
1 parent 21dd905 commit e922ce1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Get Info
run: |
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
Expand All @@ -21,12 +24,18 @@ jobs:
cd ${{ github.workspace }}
cwd=$(pwd)
git submodule update --init --recursive
npm install
npm run build
mkdir -p onlyoffice
rsync -av --exclude='onlyoffice' . onlyoffice
cd onlyoffice
rm -rf ./.github/
rm -rf ./.git/
rm ./.gitmodules
rm -rf ./node_modules/
rm -rf ./src/
rm -rf ./package.json
rm -rf ./webpack.js
rm -rf ./assets/.git
cd $cwd
tar -czvf onlyoffice.tar.gz onlyoffice
Expand Down

0 comments on commit e922ce1

Please sign in to comment.