Skip to content

Commit

Permalink
Merge pull request #537 from pierre-guillou/package_release_tags
Browse files Browse the repository at this point in the history
Packaging: Add tag name to release assets
  • Loading branch information
julien-tierny authored Nov 20, 2020
2 parents 83741e7 + 7a584fa commit e5eed6a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 30 deletions.
52 changes: 22 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ jobs:
set PV_DIR=%ProgramFiles%\TTK-ParaView
set TTK_DIR=%ProgramFiles%\TTK
set CMAKE_PREFIX_PATH=%TTK_DIR%\lib\cmake;%PV_DIR%\lib\cmake
set PATH=%PATH%;%PV_DIR%\bin;%TTK_DIR%\bin;%TTK_DIR%\bin\ttk
set PATH=%PATH%;%PV_DIR%\bin;%TTK_DIR%\bin
:: base layer
cd %GITHUB_WORKSPACE%\examples\c++
mkdir build
Expand All @@ -437,7 +437,7 @@ jobs:
export TTK_BIN="/c/Program Files/TTK/bin"
export CONDA_ROOT="/c/Miniconda"
export PV_PLUGIN_PATH="$TTK_BIN/plugins"
export PATH="$PATH:$PV_PLUGIN_PATH:$PV_BIN:$TTK_BIN:$TTK_BIN/ttk"
export PATH="$PATH:$PV_BIN:$TTK_BIN"
export PYTHONPATH="$PV_BIN/Lib/site-packages:$TTK_BIN/Lib/site-packages:$CONDA_ROOT/Lib"
# pure python
cd $GITHUB_WORKSPACE/examples/python
Expand Down Expand Up @@ -467,41 +467,33 @@ jobs:
uses: actions/download-artifact@v2

- name: Upload Ubuntu Bionic .deb as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk-ubuntu-18.04.deb/ttk-ubuntu-18.04.deb
asset_name: ttk-ubuntu-18.04.deb
asset_content_type: application/vnd.debian.binary-package
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-ubuntu-18.04.deb/ttk-ubuntu-18.04.deb
asset_name: ttk-$tag-ubuntu-18.04.deb

- name: Upload Ubuntu Focal .deb as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk-ubuntu-20.04.deb/ttk-ubuntu-20.04.deb
asset_name: ttk-ubuntu-20.04.deb
asset_content_type: application/vnd.debian.binary-package
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-ubuntu-20.04.deb/ttk-ubuntu-20.04.deb
asset_name: ttk-$tag-ubuntu-20.04.deb

- name: Upload macOS .pkg as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk.pkg/ttk.pkg
asset_name: ttk.pkg
asset_content_type: application/x-newton-compatible-pkg
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk.pkg/ttk.pkg
asset_name: ttk-$tag.pkg

- name: Upload Windows .exe as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk.exe/ttk.exe
asset_name: ttk.exe
asset_content_type: application/vnd.microsoft.portable-executable
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk.exe/ttk.exe
asset_name: ttk-$tag.exe
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Hidden files
.*
!.gitignore
!.github

# Temporary and backup files
\#*\#
Expand Down

0 comments on commit e5eed6a

Please sign in to comment.