Skip to content

Commit

Permalink
refine build.info
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Jan 30, 2024
1 parent 1e95c7b commit ec8d437
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ jobs:
# with:
# go-version: 1.21

- name: collect build info
id: collect
shell: bash
run: |
echo "tag: `git describe --tags`" > build.info
echo "commit: `git rev-parse HEAD`" >> build.info
echo "branch: `git rev-parse --abbrev-ref HEAD`" >> build.info
# head build.info
# echo "time: `date "+%F %T"`" >> build.txt
# echo "version: `go version | grep "version" | awk '{print $3,$4}'`" >> build.txt

- name: setting up workflow variables
id: vars
shell: bash
Expand Down Expand Up @@ -96,8 +85,12 @@ jobs:
id: packaging
shell: bash
run: |
echo "tag: `git describe --tags`" > build.info
echo "commit: `git rev-parse HEAD`" >> build.info
echo "branch: `git rev-parse --abbrev-ref HEAD`" >> build.info
mkdir -p ${{ steps.vars.outputs.PKG_STAGING }}
tar czf ${{ steps.vars.outputs.PKG_PATH }} \
tar cvzf ${{ steps.vars.outputs.PKG_PATH }} \
build.info \
LICENSE \
README.md \
Expand Down
5 changes: 2 additions & 3 deletions APKBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributor: Wang Qi <[email protected]>
# Maintainer: Wang Qi <[email protected]>
pkgname=aprilsh
pkgver=0.5.7
pkgver=0.5.9
pkgrel=0
pkgdesc="Remote shell support intermittent or mobile network"
url="https://github.com/ericwq/aprilsh"
Expand Down Expand Up @@ -43,7 +43,6 @@ build() {
ls -al

BuildVersion=`head build.txt | grep "version:" | awk '{print $2}'`
# printf "$PATH\n"
ModuleName=`head ./go.mod | grep "^module" | awk '{print $2}'`
BuildTime=`date "+%F %T"`
GoVersion=`go version | grep "version" | awk '{print $3,$4}'`
Expand Down Expand Up @@ -99,5 +98,5 @@ package() {
# }

sha512sums="
51499e579b92a51b4096893b9a2ec3f7c6af7d0ef232725d14176348abcecdd12b5bc3ed2beec510b7e18ee26eb856cd3c7ed05c255a7478ee1c1b63cd4e4494 aprilsh-0.5.6.tar.gz
36ef95b5925dcc1f56da8c1d417110127a754eb93ccd7d62875de454798952eb1e9b410a272452ba72ffb1b5c5043c98ce986b1442c243f59af32f0eef8a53c0 aprilsh-0.5.8.tar.gz
"

0 comments on commit ec8d437

Please sign in to comment.