Skip to content

Commit

Permalink
Add workflow to create tarball for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
daljit46 committed Feb 27, 2024
1 parent efc82f8 commit 868cb80
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/package-linux-tarball.yml
Original file line number Diff line number Diff line change
@@ -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 mrtrix-$(git describe --tags --abbrev=0)-linux.tar.gz
- name: Upload package to GitHub Release
uses: AButler/[email protected]
with:
files: '*.tar.gz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ add_custom_target(Github SOURCES
.github/ISSUE_TEMPLATE/custom.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/workflows/checks.yml
.github/workflows/package-linux-tarball.yml
.github/workflows/package-linux-anaconda.yml
.github/workflows/package-macos-anaconda.yml
.github/workflows/package-macos-native.yml
Expand Down

0 comments on commit 868cb80

Please sign in to comment.