Skip to content

CI Photos

CI Photos #52

Workflow file for this run

name: CI Photos
on:
workflow_dispatch:
jobs:
build:
runs-on: jinlife-ubuntu-18.04
env:
PHOTO_VERSION: 1.7.1-10015
steps:
- name: Clean folder
run: |
sudo rm -rf *
- name: Check out the repo
uses: actions/checkout@v3
with:
ref: main
path: './repo'
- name: Copy
working-directory: ./repo/src
run: |
cd ../../
cp -r ./repo ./repoPatch
- name: Patch
run: |
cd repoPatch
sudo chmod -R 777 ./
cd lazy
sudo ./auto_patch_Photos.sh "${PHOTO_VERSION}"
cd ../../
sudo cp -v ./repoPatch/libsynophoto-plugin-platform.so ./repo/libsynophoto-plugin-platform.so
sudo cp -v ./repoPatch/libsynophoto-plugin-platform.so.1.0 ./repo/libsynophoto-plugin-platform.so.1.0
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update Synology Photos V${{env.PHOTO_VERSION}}"
repository: './repo'
- name: Upload Release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
body: "Synology Photos V${{ env.PHOTO_VERSION }} only"
name: "Patch Photos V${{ env.PHOTO_VERSION }}"
tag_name: "${{ env.PHOTO_VERSION }}"
files: |
./repo/libsynophoto-plugin-platform.so
./repo/libsynophoto-plugin-platform.so.1.0