-
Notifications
You must be signed in to change notification settings - Fork 90
39 lines (37 loc) · 1.02 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
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: 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
mkdir -p ./onlyoffice
rsync -av --exclude='onlyoffice' . onlyoffice
cd onlyoffice
rm -rf ./.github/
rm -rf ./.git/
rm ./.gitmodules
rm -rf ./assets/.git
cd ./appinfo
sed -i 's|<licence>apl2|<licence>agpl|' info.xml
cd $cwd
tar -czvf onlyoffice.tar.gz onlyoffice
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: onlyoffice
path: onlyoffice.tar.gz