Build Release Package #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release Package | |
on: | |
# Trigger on push or from Github web UI | |
push: | |
branches: | |
# Only Trigger on pushes to master, and | |
- 'master' | |
paths: | |
# Only trigger when non-CI changes were made | |
- 'doc/*' | |
- 'linux/*' | |
- 'linux_arm64/*' | |
- 'mac/*' | |
- 'win32/*' | |
- 'win64/*' | |
workflow_dispatch: | |
# Triggered manually from Github | |
jobs: | |
package_libs: | |
name: Package libs into .tar and .zip containers | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run script | |
# Note: Sets {{ env.TAG_NAME }} to HEAD SHA-1 | |
run: ci/script.sh | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
name: ${{ env.TAG_NAME }} | |
draft: false | |
prerelease: false | |
files: | | |
linux/bin-linux.tar.gz | |
linux_arm64/bin-linux_arm64.tar.gz | |
mac/bin-mac.tar.gz | |
win32/bin-win32.zip | |
win64/bin-win64.zip |