Merge pull request #15 from titanscouting/automate-build

Update superscript-v1 with automate-build
This commit is contained in:
Arthur Lu 2021-10-10 19:47:48 -07:00 committed by GitHub
commit 0fb586f13d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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