From b2124df613e29a2beab0446a0f9ca9ae19741841 Mon Sep 17 00:00:00 2001 From: Daljit Singh Date: Mon, 19 Feb 2024 20:34:34 +0000 Subject: [PATCH] Add workflow to create tarball for Linux --- .github/workflows/package-linux-tarball.yml | 31 +++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/package-linux-tarball.yml diff --git a/.github/workflows/package-linux-tarball.yml b/.github/workflows/package-linux-tarball.yml new file mode 100644 index 0000000000..fa94a8fe9f --- /dev/null +++ b/.github/workflows/package-linux-tarball.yml @@ -0,0 +1,31 @@ +name: package-linux-tarball + +on: + release: + types: [created] + +jobs: + package: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: Install Qt 6 + uses: jurplel/install-qt-action@v3 + with: + version: '6.6.1' + set-env: true + + - name: Run tarball script + run: | + ./packaging/package-linux-tarball.sh . + mv mrtrix.tar.gz mrtrix3-$(git describe --tags --abbrev=0)-linux.tar.gz + + - name: Upload package to GitHub Release + uses: AButler/upload-release-assets@v2.0 + with: + files: '*.tar.gz' + repo-token: ${{ secrets.GITHUB_TOKEN }}