Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
update github action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Dec 23, 2019
1 parent c219165 commit 3cd2872
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@ jobs:
with:
go-version: 1.13.x

- name: Check out code into the Go module directory
uses: actions/checkout@master
- name: Check out code
uses: actions/checkout@v2
with:
ref: 'master'
fetch-depth: '0'

- name: Generate Git log
run: |
git fetch origin +refs/tags/*:refs/tags/*
GITVER=$(git describe --tags)
PREVVER=$(git describe --tags --abbrev=0 ${GITVER}~1)
git log --oneline ${PREVVER}..${GITVER} > gittaglogs.txt
- name: Get dependencies
run: |
Expand Down Expand Up @@ -50,9 +60,9 @@ jobs:
scripts/build/cloud-torrent_linux_arm_armv7.gz
scripts/build/cloud-torrent_linux_mipsle.gz
scripts/build/cloud-torrent_linux_mips.gz
prerelease: true
prerelease: false
draft: false
body_path: scripts/build/gittaglogs.txt
body_path: gittaglogs.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4 changes: 2 additions & 2 deletions scripts/ci_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ __root="$(cd "$(dirname "${__dir}")" && pwd)" # <-- change this as it depends on

BUILDDIR=$__dir/build
BIN=cloud-torrent
GITVER=$(git describe --tags)
mkdir -p $BUILDDIR
GITVER=$(git describe --tags)

makebuild () {
local PREFIX=$1
Expand Down Expand Up @@ -44,4 +44,4 @@ upstatic () {

upstatic
makebuild $BIN $1 $2
git log --oneline ${GITVER}^..${GITVER} > $BUILDDIR/gittaglogs.txt

0 comments on commit 3cd2872

Please sign in to comment.