tra-superscript/.github/workflows/build-cli.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2021-04-25 03:51:01 +00:00
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
2021-08-26 22:26:29 +00:00
name: Build Superscript Linux
2021-04-25 03:51:01 +00:00
on:
release:
types: [published, edited]
2021-04-25 03:51:01 +00:00
jobs:
generate:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Checkout master
2021-08-26 22:26:29 +00:00
uses: actions/checkout@master
2021-08-26 22:48:48 +00:00
- name: Install Dependencies
run: pip install -r requirements.txt
working-directory: src/
- name: Give Execute Permission
2021-08-26 22:53:21 +00:00
run: chmod +x build-CLI.sh
2021-08-26 22:48:48 +00:00
working-directory: build/
- name: Build Binary
2021-08-26 22:57:15 +00:00
run: ./build-CLI.sh
2021-08-26 23:14:09 +00:00
working-directory: build/
- name: Copy Binary to Root Dir
run: cp superscript ..
working-directory: dist/
- name: Upload Release Asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: superscript
asset_name: superscript
2021-08-26 23:14:09 +00:00
tag: ${{ github.ref }}