From c05f03d3ac21f4770e677ad82c04e80528111925 Mon Sep 17 00:00:00 2001 From: Bradley Chatha Date: Mon, 1 Jan 2024 15:11:52 +0000 Subject: [PATCH] feat(ci): repurpose opensuse_rpm job to create a manual dist for me --- .github/workflows/package.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 841a903..be64a83 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -28,5 +28,26 @@ jobs: - uses: ./.github/actions/meson-dist # The sparse docs around OBS are testing my patience, so I'm just going to - # do the releases manually and hope I don't forget (what a shame that would be).s - # opensuse_rpm: \ No newline at end of file + # do the releases manually and hope I don't forget (what a shame that would be). + opensuse_rpm: + name: Create (Manual) OpenSUSE Package + runs-on: ubuntu-latest + needs: create_dists + steps: + - uses: actions/download-artifact@v2 + with: + name: dists + path: dists + + - name: Move files around into a new zip + run: | + tar -xzvf dists/devops.tar.gz + mkdir release + mv build/devops/pkg/opensuse-rpm/juptune.spec release/ + mv dists/juptune-*.tar.gz release/ + tar -czvf opensuse-manual-package.tar.gz release + + - uses: softprops/action-gh-release@v1 + with: + files: | + opensuse-manual-package.tar.gz \ No newline at end of file