diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-02-12 00:22:15 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-02-12 00:22:15 -0500 |
commit | 8e9e8dd1b07dd819f9cfad5192cfed40a94dd30a (patch) | |
tree | d2a6cc5f1287abc346614dd66bc6bf1cf1d1564f | |
parent | Strip out path prefixes (diff) | |
download | jellyfin-packaging-8e9e8dd1b07dd819f9cfad5192cfed40a94dd30a.tar.gz jellyfin-packaging-8e9e8dd1b07dd819f9cfad5192cfed40a94dd30a.tar.bz2 jellyfin-packaging-8e9e8dd1b07dd819f9cfad5192cfed40a94dd30a.zip |
Add artifact handlers
-rw-r--r-- | .github/workflows/release-build.yaml | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 2fb674a..c64fbda 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -21,8 +21,8 @@ jobs: - bookworm arch: - amd64 -# - arm64 -# - armhf + - arm64 + - armhf steps: - name: "Install dependencies" run: |- @@ -48,3 +48,32 @@ jobs: source: "out/debian/*" strip_components: 2 target: "/srv/incoming/${{ inputs.version }}/debian/${{ matrix.arch }}/${{ matrix.release }}" + + - name: "Import artifacts into reprepro" + uses: nekiro/ssh-job@main + with: + host: "${{ secrets.REPO_HOST }}" + username: "${{ secrets.REPO_USER }}" + key: "${{ secrets.REPO_KEY }}" + command: |- + 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 + + - name: "Move artifacts into repository" + uses: nekiro/ssh-job@main + with: + host: "${{ secrets.REPO_HOST }}" + username: "${{ secrets.REPO_USER }}" + key: "${{ secrets.REPO_KEY }}" + command: |- + 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 + sudo ln -s /srv/repository/mirror/releases/server/debian/versions/${{ inputs.version }}/${{ matrix.arch }} /srv/repository/mirror/releases/server/debian/latest-server + fi + |