diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 55324fd5..de485513 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -24,6 +24,13 @@ jobs: chmod 775 heta-compiler tar -czvf ./heta-compiler-macos.tar.gz ./heta-compiler cd .. + -name: Create .deb package + run: | + mkdir -p dist/heta-compiler/DEBIAN + cp build-deb/control dist/heta-compiler/DEBIAN/ + mkdir -p dist/heta-compiler/usr/local/bin + cp dist/heta-compiler-linux dist/heta-compiler/usr/local/bin/ + dpkg-deb --build dist/heta-compiler - name: Upload Release Asset Linux uses: actions/upload-release-asset@v1 @@ -64,6 +71,16 @@ jobs: asset_path: dist/heta-compiler-macos.tar.gz asset_name: heta-compiler-macos.tar.gz asset_content_type: application/octet-stream + + - name: Upload Release DEB Linux + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: dist/heta-compiler.deb + asset_name: heta-compiler-linux-x64.deb + asset_content_type: application/octet-stream upload-windows-release-asset: runs-on: windows-latest steps: diff --git a/build-deb/control b/build-deb/control new file mode 100644 index 00000000..e2a7d3ab --- /dev/null +++ b/build-deb/control @@ -0,0 +1,7 @@ +Package: heta-compiler +Version: 0.9.2 +Section: utils +Priority: optional +Architecture: amd64 +Maintainer: Heta project +Description: CLI tool for Heta language diff --git a/index.md b/index.md index b13b643e..1c01f052 100644 --- a/index.md +++ b/index.md @@ -11,9 +11,7 @@ **Heta compiler** is a software tool for the compilation of Heta-based QSP modeling platforms. Heta compiler can also be used as a JavaScript/Node package to develop modeling tools. -To read the full documentation, visit the Heta project homepage: . - -## General info +**General info** - [Introduction](#introduction) - [How to cite](#how-to-cite) @@ -27,7 +25,7 @@ To read the full documentation, visit the Heta project homepage: