From 65a1720657e3d90a33621e55a413f07431d1c80f Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 26 Aug 2021 22:48:48 +0000 Subject: [PATCH 1/5] added prerequisite and build steps --- .github/workflows/build-cli.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 04e4e66..175e095 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -11,9 +11,15 @@ jobs: generate: name: Build Linux runs-on: ubuntu-latest - steps: - name: Checkout master uses: actions/checkout@master - - name: Echo test - run: echo "test" \ No newline at end of file + - name: Install Dependencies + run: pip install -r requirements.txt + working-directory: src/ + - name: Give Execute Permission + run: chmod +x build/build-CLI.sh + working-directory: build/ + - name: Build Binary + run: ./build-CLI.sh + working-directory: build/ \ No newline at end of file From 1106a0ffb1d393bd682fc70c3bf9dea7ea08575e Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 26 Aug 2021 22:53:21 +0000 Subject: [PATCH 2/5] fixed path --- .github/workflows/build-cli.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 175e095..ede3b4c 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -18,8 +18,8 @@ jobs: run: pip install -r requirements.txt working-directory: src/ - name: Give Execute Permission - run: chmod +x build/build-CLI.sh + run: chmod +x build-CLI.sh working-directory: build/ - name: Build Binary - run: ./build-CLI.sh + run: ./build-CLI.sh5 working-directory: build/ \ No newline at end of file From fc63d5d7e1acf874f70db955b581d229ed3a8322 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 26 Aug 2021 22:57:15 +0000 Subject: [PATCH 3/5] fixed typo --- .github/workflows/build-cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index ede3b4c..0828fa6 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -21,5 +21,5 @@ jobs: run: chmod +x build-CLI.sh working-directory: build/ - name: Build Binary - run: ./build-CLI.sh5 + run: ./build-CLI.sh working-directory: build/ \ No newline at end of file From 42ca74b4ab541a9358cb5fe2d82ced0d48537f00 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 26 Aug 2021 23:14:09 +0000 Subject: [PATCH 4/5] add release asset automaticallt --- .github/workflows/build-cli.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 0828fa6..0093a7c 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -22,4 +22,14 @@ jobs: working-directory: build/ - name: Build Binary run: ./build-CLI.sh - working-directory: build/ \ No newline at end of file + 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 Linux Binary + tag: ${{ github.ref }} \ No newline at end of file From 73b5c393a016ed25ac49661e68f67e9aa495adaf Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 26 Aug 2021 23:19:53 +0000 Subject: [PATCH 5/5] changed asset upload name removed create criteria, must be publish --- .github/workflows/build-cli.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 0093a7c..7b9f8d7 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -5,7 +5,7 @@ name: Build Superscript Linux on: release: - types: [published, created, edited] + types: [published, edited] jobs: generate: @@ -31,5 +31,5 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: superscript - asset_name: Superscript Linux Binary + asset_name: superscript tag: ${{ github.ref }} \ No newline at end of file