Skip to content

Update build

Update build #1

Workflow file for this run

name: 'Upload plugin assets (dev)'
on: { }
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: build-artifact
- name: Prepare GH Release Assets
run: |-
for file in ./*; do
md5sum ${file#./} >> ${file%.*}.md5
sha256sum ${file#./} >> ${file%.*}.sha256
done
ls -l
- name: Upload GH Release Assets
uses: shogo82148/actions-upload-release-asset@aac270e08f6b4547ada0b3800f88e1eb3ce9d400 # v1.7.7
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./*
- name: Ensure Destination Path Exists
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
if: ${{ contains(github.repository, 'lyarenei/') }}
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script_stop: true
script: |-
mkdir -p "/var/www/repos/jellyfin-dev/${{ github.repository }}/${{ inputs.version }}" || exit 1
- name: Upload Jellyfin Plugin Repository Assets
uses: burnett01/rsync-deployments@796cf0d5e4b535745ce49d7429f77cf39e25ef39 # v7.0.1
if: ${{ contains(github.repository, 'lyarenei/') }}
with:
switches: -vrptz
path: ./*.zip
remote_path: /var/www/repos/jellyfin-dev/${{ github.repository }}/${{ inputs.version }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}