Skip to content

Commit 48ae1b2

Browse files
committed
use ci
1 parent 6421225 commit 48ae1b2

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/go.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ jobs:
2222
ref: 'master'
2323
fetch-depth: '0'
2424

25-
- name: Fetch all history for all tags and branches
25+
- name: Generate Git log
2626
run: |
2727
git fetch origin +refs/tags/*:refs/tags/*
28+
GITVER=$(git describe --tags)
29+
PREVVER=$(git describe --tags --abbrev=0 ${GITVER}~1)
30+
git log --oneline ${PREVVER}..${GITVER} > gittaglogs.txt
2831
2932
- name: Get dependencies
3033
run: |
@@ -59,7 +62,7 @@ jobs:
5962
scripts/build/cloud-torrent_linux_mips.gz
6063
prerelease: true
6164
draft: false
62-
body_path: scripts/build/gittaglogs.txt
65+
body_path: gittaglogs.txt
6366
env:
6467
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6568

scripts/ci_release.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ BIN=cloud-torrent
99
mkdir -p $BUILDDIR
1010
GITVER=$(git describe --tags)
1111

12-
if [[ ! -f $BUILDDIR/gittaglogs.txt ]]; then
13-
PREVVER=$(git describe --tags --abbrev=0 ${GITVER}~1)
14-
git log --oneline ${PREVVER}..${GITVER} > $BUILDDIR/gittaglogs.txt
15-
fi
16-
1712
makebuild () {
1813
local PREFIX=$1
1914
local OS=$2

0 commit comments

Comments
 (0)