Skip to content

Commit

Permalink
Merge pull request #16 from linhx/feature/#15
Browse files Browse the repository at this point in the history
fix(#15): Wrong file extension ".xz" for "gz" release files
  • Loading branch information
linhx authored Feb 24, 2024
2 parents a7f4753 + 2f73ac9 commit fd315b9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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/*"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fd315b9

Please sign in to comment.