diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-12 00:54:31 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-02-12 01:39:48 -0500 |
commit | b72cc873c91c616715f67ed29fab77ce2fc668fc (patch) | |
tree | ae1eb74ee227c5f7a78bf14ed93af9167d0f4457 /.github/workflows | |
parent | Fix incorrect entry (diff) | |
download | jellyfin-packaging-b72cc873c91c616715f67ed29fab77ce2fc668fc.tar.gz jellyfin-packaging-b72cc873c91c616715f67ed29fab77ce2fc668fc.tar.bz2 jellyfin-packaging-b72cc873c91c616715f67ed29fab77ce2fc668fc.zip |
Switch to different action and fix bugs
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release-build.yaml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 6c0599c..9cc8b5a 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -50,27 +50,28 @@ jobs: target: "/srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}" - name: "Import artifacts into reprepro" - uses: nekiro/ssh-job@main + uses: appleboy/ssh-action@v1.0.3 with: host: "${{ secrets.REPO_HOST }}" - user: "${{ secrets.REPO_USER }}" + username: "${{ secrets.REPO_USER }}" key: "${{ secrets.REPO_KEY }}" - command: |- + script: | + set -o xtrace if [[ ${{ inputs.version }} == "master" ]]; then COMPONENT="unstable" else COMPONENT="unstable" fi - sudo reprepro --basedir --component ${COMPONENT} /srv/debian includedeb ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}/*.deb - sudo reprepro --basedir --component ${COMPONENT} /srv/debian includedsc ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/dscian/${{ matrix.arch }}/${{ matrix.release }}/*.dsc + sudo reprepro --basedir /srv/debian --component ${COMPONENT} includedeb ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}/*.deb + sudo reprepro --basedir /srv/debian --component ${COMPONENT} includedsc ${{ matrix.release }} /srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}/*.dsc - name: "Move artifacts into repository" - uses: nekiro/ssh-job@main + uses: appleboy/ssh-action@v1.0.3 with: host: "${{ secrets.REPO_HOST }}" - user: "${{ secrets.REPO_USER }}" + username: "${{ secrets.REPO_USER }}" key: "${{ secrets.REPO_KEY }}" - command: |- + script: | sudo mkdir -p /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} sudo mv -t /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}/*.deb if [[ ${{ inputs.version }} != "master" ]]; then |