From 5de3d35c467bb2192939472fdf7fe9ed87705fe5 Mon Sep 17 00:00:00 2001 From: Nguyen Dinh Linh <50461902+linhx@users.noreply.github.com> Date: Thu, 1 Feb 2024 23:40:10 +0700 Subject: [PATCH 1/3] feat: github action --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..2e7a406 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,31 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + workflow_dispatch: + push: + tags: + - '*' + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: ./build.sh + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + files: "built/*" From 02142fdd2e7ccd629a52a0e3736d7ffd597df76c Mon Sep 17 00:00:00 2001 From: Nguyen Dinh Linh <50461902+linhx@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:08:06 +0700 Subject: [PATCH 2/3] chore: add workflow status badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1043fec..1c50699 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Tbmk - Terminal bookmarker +![](https://github.com/linhx/tbmk/actions/workflows/go.yml/badge.svg) + A commands bookmark for terminal ![demo](./tbmk.gif) From 2f73ac9f6786cd370138e4de3146e2584e6072cf Mon Sep 17 00:00:00 2001 From: Nguyen Dinh Linh <50461902+linhx@users.noreply.github.com> Date: Sun, 25 Feb 2024 06:40:32 +0700 Subject: [PATCH 3/3] fix: Wrong file extension ".xz" for "gz" release files --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index e66d846..b3d835a 100755 --- a/build.sh +++ b/build.sh @@ -19,6 +19,6 @@ do exit 1 fi chmod +x $output_path - tar -cvzf "$output_path.tar.xz" --transform="s/$output_dir\/$output_name/$package_name/" "$output_path" install uninstall shell config.yaml + tar -cvzf "$output_path.tar.gz" --transform="s/$output_dir\/$output_name/$package_name/" "$output_path" install uninstall shell config.yaml rm $output_path done