Fix paths to use incoming and sudo move

Aligns with new permissions model on new repo server.
This commit is contained in:
Joshua M. Boniface 2024-03-09 12:55:26 -05:00
parent 475d7f649f
commit 4fb6830bbd

View File

@ -81,7 +81,7 @@ jobs:
with:
switches: -vrptz
path: jellyfin-chromecast.zip
remote_path: /srv/repository/main/client/chromecast/versions/${{ env.JELLYFIN_VERSION }}/
remote_path: /srv/incoming/chromecast/${{ env.JELLYFIN_VERSION }}/
remote_host: ${{ secrets.REPO_HOST }}
remote_user: ${{ secrets.REPO_USER }}
remote_key: ${{ secrets.REPO_KEY }}
@ -95,9 +95,10 @@ jobs:
envs: JELLYFIN_VERSION
script_stop: true
script: |
sudo mv /srv/incoming/chromecast/${{ env.JELLYFIN_VERSION }} /srv/repository/main/client/chromecast/versions/${{ env.JELLYFIN_VERSION }};
cd /srv/repository/main/client/chromecast;
rm -rf *.zip;
ln -s versions/${JELLYFIN_VERSION}/jellyfin-chromecast-${JELLYFIN_VERSION}.zip .;
sudo rm -rf *.zip;
suod ln -s versions/${JELLYFIN_VERSION}/jellyfin-chromecast-${JELLYFIN_VERSION}.zip .;
deploy:
name: Deploy