diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2374ea..960476c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,10 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - run: git fetch --tags && echo $(git tag -l) + - run: | + echo $(git tag -l) + git fetch --force --tags + echo $(git tag -l) - uses: actions/setup-go@v3 with: @@ -46,7 +49,7 @@ jobs: id: build run: | make -j dists updates - echo "::set-output name=tag::$(git describe --exclude 'r-*' --tags)" + echo "::set-output name=tag::$(git describe --exclude 'r-*' --tags --always)" - name: Deploy with rsync run: rsync -avz ./public/ olebeck@${{ secrets.SSH_HOST }}:/var/www/updates/bedrocktool/ diff --git a/Makefile b/Makefile index 8dc9b59..3c2b3fa 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TAG = $(shell git describe --exclude "r-*" --tags) +TAG = $(shell git describe --exclude "r-*" --tags --always) NAME = bedrocktool-${TAG} SRCS = $(wildcard **/*.go)