From 2f90e7d11afad86d75d42ea7234f4acd55fe95fa 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 Former-commit-id: 65a1720657e3d90a33621e55a413f07431d1c80f --- .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 66e00987c40bbc6dd975210753e4372b0bf77628 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 Former-commit-id: 1106a0ffb1d393bd682fc70c3bf9dea7ea08575e --- .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 3e212e4502e55baec9a33f350693779ad4f349cb 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 Former-commit-id: fc63d5d7e1acf874f70db955b581d229ed3a8322 --- .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 8000a7314d318f28eaf1b6eca60cef30dffaa6be 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 Former-commit-id: 42ca74b4ab541a9358cb5fe2d82ced0d48537f00 --- .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 2444963af9e675d16c30f64069c11c7aee043f89 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 Former-commit-id: 73b5c393a016ed25ac49661e68f67e9aa495adaf --- .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