mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-14 15:16:18 +00:00
73b5c393a0
removed create criteria, must be publish
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
# 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
|
|
|
|
name: Build Superscript Linux
|
|
|
|
on:
|
|
release:
|
|
types: [published, edited]
|
|
|
|
jobs:
|
|
generate:
|
|
name: Build Linux
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout master
|
|
uses: actions/checkout@master
|
|
- name: Install Dependencies
|
|
run: pip install -r requirements.txt
|
|
working-directory: src/
|
|
- name: Give Execute Permission
|
|
run: chmod +x build-CLI.sh
|
|
working-directory: build/
|
|
- name: Build Binary
|
|
run: ./build-CLI.sh
|
|
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
|
|
tag: ${{ github.ref }} |