Merge pull request #15 from titanscouting/automate-build

Update superscript-v1 with automate-build

Former-commit-id: 0fb586f13d
This commit is contained in:
Arthur Lu 2021-10-10 19:47:48 -07:00 committed by GitHub
commit 06630b0dd4

View File

@ -5,15 +5,31 @@ name: Build Superscript Linux
on:
release:
types: [published, created, edited]
types: [published, edited]
jobs:
generate:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@master
- name: Echo test
run: echo "test"
- 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 }}