Artifact #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |