@@ -172,54 +172,6 @@ jobs:
172172      with :
173173        name : ubuntu-${{ matrix.tag }} 
174174        path : ${{ github.workspace }}/deployment/dist/* 
175-     - name : Import repository signing GPG key 
176-       run : | 
177-         echo -n "${{ secrets.DEBIAN_SIGNING_KEY }}" | base64 --decode | gpg --batch --yes --import 
178- name : Sign Debian package and source files 
179-       run : | 
180-         for file in deployment/dist/*.deb; do 
181-             debsigs --sign=origin --default-key=${{ secrets.DEBIAN_SIGNING_KEY_ID }} ${file} 
182-         done 
183-         debsign -k ${{ secrets.DEBIAN_SIGNING_KEY_ID }} deployment/dist/*.changes 
184- name : Remove repository signing GPG key 
185-       run : | 
186-         gpg --batch --yes --delete-secret-keys ${{ secrets.DEBIAN_SIGNING_KEY_ID }} 
187- name : Upload artifacts to repository server 
188-       uses : appleboy/scp-action@917f8b81dfc1ccd331fef9e2d61bdc6c8be94634  #  v0.1.7
189-       with :
190-         host : " ${{ secrets.REPO_HOST }}" 
191-         username : " ${{ secrets.REPO_USER }}" 
192-         key : " ${{ secrets.REPO_KEY }}" 
193-         source : deployment/dist/* 
194-         strip_components : 2 
195-         target : " /srv/incoming/client/jellyfin-media-player/ubuntu/{{ matrix.tag }}" 
196-     - name : Import artifactsinto reprepro 
197-       uses : appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262  #  v1.0.3
198-       with :
199-         host : " ${{ secrets.REPO_HOST }}" 
200-         username : " ${{ secrets.REPO_USER }}" 
201-         key : " ${{ secrets.REPO_KEY }}" 
202-         debug : false 
203-         script_stop : false 
204-         script : | 
205-           set -o xtrace 
206-           COMPONENT="main" 
207-           sudo reprepro --waitforlock 30 --basedir /srv/ubuntu --component ${COMPONENT} includedeb ${{ matrix.tag }} /srv/incoming/client/jellyfin-media-player/ubuntu/{{ matrix.tag }}/*.deb || exit 1 
208-           sudo reprepro --waitforlock 30 --basedir /srv/ubuntu --component ${COMPONENT} includedsc ${{ matrix.tag }} /srv/incoming/client/jellyfin-media-player/ubuntu/{{ matrix.tag }}/*.dsc || exit 1 
209- name : Move artifacts into repository 
210-       uses : appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262  #  v1.0.3
211-       with :
212-         host : " ${{ secrets.REPO_HOST }}" 
213-         username : " ${{ secrets.REPO_USER }}" 
214-         key : " ${{ secrets.REPO_KEY }}" 
215-         debug : false 
216-         script_stop : false 
217-         script : | 
218-           export BASEDIR="/srv/repository/main/client/jellyfin-media-player/ubuntu" 
219-           sudo mkdir -p ${BASEDIR}/stable/${{ github.ref_name }} || exit 1 
220-           sudo mv -t ${BASEDIR}/stable/${{ github.ref_name }} /srv/incoming/client/jellyfin-media-player/ubuntu/{{ matrix.tag }}/* || exit 1 
221-           sudo rm ${BASEDIR}/latest || true  
222-           sudo ln -sf ${BASEDIR}/stable/${{ github.ref_name }} ${BASEDIR}/latest || exit 1 
223175
224176  build-debian :
225177    strategy :
@@ -242,51 +194,3 @@ jobs:
242194      with :
243195        name : debian-${{ matrix.tag }} 
244196        path : ${{ github.workspace }}/deployment/dist/* 
245-     - name : Import repository signing GPG key 
246-       run : | 
247-         echo -n "${{ secrets.DEBIAN_SIGNING_KEY }}" | base64 --decode | gpg --batch --yes --import 
248- name : Sign Debian package and source files 
249-       run : | 
250-         for file in deployment/dist/*.deb; do 
251-             debsigs --sign=origin --default-key=${{ secrets.DEBIAN_SIGNING_KEY_ID }} ${file} 
252-         done 
253-         debsign -k ${{ secrets.DEBIAN_SIGNING_KEY_ID }} deployment/dist/*.changes 
254- name : Remove repository signing GPG key 
255-       run : | 
256-         gpg --batch --yes --delete-secret-keys ${{ secrets.DEBIAN_SIGNING_KEY_ID }} 
257- name : Upload artifacts to repository server 
258-       uses : appleboy/scp-action@917f8b81dfc1ccd331fef9e2d61bdc6c8be94634  #  v0.1.7
259-       with :
260-         host : " ${{ secrets.REPO_HOST }}" 
261-         username : " ${{ secrets.REPO_USER }}" 
262-         key : " ${{ secrets.REPO_KEY }}" 
263-         source : deployment/dist/* 
264-         strip_components : 2 
265-         target : " /srv/incoming/client/jellyfin-media-player/debian/{{ matrix.tag }}" 
266-     - name : Import artifactsinto reprepro 
267-       uses : appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262  #  v1.0.3
268-       with :
269-         host : " ${{ secrets.REPO_HOST }}" 
270-         username : " ${{ secrets.REPO_USER }}" 
271-         key : " ${{ secrets.REPO_KEY }}" 
272-         debug : false 
273-         script_stop : false 
274-         script : | 
275-           set -o xtrace 
276-           COMPONENT="main" 
277-           sudo reprepro --waitforlock 30 --basedir /srv/debian --component ${COMPONENT} includedeb ${{ matrix.tag }} /srv/incoming/client/jellyfin-media-player/debian/{{ matrix.tag }}/*.deb || exit 1 
278-           sudo reprepro --waitforlock 30 --basedir /srv/debian --component ${COMPONENT} includedsc ${{ matrix.tag }} /srv/incoming/client/jellyfin-media-player/debian/{{ matrix.tag }}/*.dsc || exit 1 
279- name : Move artifacts into repository 
280-       uses : appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262  #  v1.0.3
281-       with :
282-         host : " ${{ secrets.REPO_HOST }}" 
283-         username : " ${{ secrets.REPO_USER }}" 
284-         key : " ${{ secrets.REPO_KEY }}" 
285-         debug : false 
286-         script_stop : false 
287-         script : | 
288-           export BASEDIR="/srv/repository/main/client/jellyfin-media-player/debian" 
289-           sudo mkdir -p ${BASEDIR}/stable/${{ github.ref_name }} || exit 1 
290-           sudo mv -t ${BASEDIR}/stable/${{ github.ref_name }} /srv/incoming/client/jellyfin-media-player/debian/{{ matrix.tag }}/* || exit 1 
291-           sudo rm ${BASEDIR}/latest || true  
292-           sudo ln -sf ${BASEDIR}/stable/${{ github.ref_name }} ${BASEDIR}/latest || exit 1 
0 commit comments