back to latest tag

This commit is contained in:
olebeck 2022-09-06 09:41:49 +02:00
parent e6236112f7
commit e797457150
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,8 @@
name: ci-build
on:
push
push:
tags:
- "v*"
jobs:
build:
@ -41,15 +43,17 @@ jobs:
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: build
id: build
run: make -j dists updates
- name: Deploy with rsync
run: rsync -avz ./public/ olebeck@${{ secrets.SSH_HOST }}:/var/www/updates/bedrocktool/
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: r-${{ steps.build.outputs.tag }}
automatic_release_tag: ${{ steps.get-latest-tag.outputs.tag }}
files: dist/*
prerelease: false

View File

@ -1,6 +1,4 @@
TAG = $(shell git describe --exclude "r-*" --tags)
$(info ::set-output name=tag::$(TAG))
NAME = bedrocktool-${TAG}
SRCS = $(wildcard **/*.go)