From 5e6479ec649f951762926aed94d7bcacb6ae41d3 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Mon, 30 Aug 2021 17:18:31 +0300 Subject: [PATCH] Replace release job --- .github/workflows/release.yml | 14 +++++++------- scripts/tag.sh | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 253640c..045cbc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,15 @@ -name: release +name: Releases -on: push +on: + push: + tags: + - 'v*' jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + - uses: actions/checkout@v2 + - uses: ncipollo/release-action@v1 with: body: Check CHANGELOG.md for details diff --git a/scripts/tag.sh b/scripts/tag.sh index b5af0e3..b9c8cba 100755 --- a/scripts/tag.sh +++ b/scripts/tag.sh @@ -31,7 +31,7 @@ PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \ | sed 's/^\.\///' \ | sort) -git tag ${TAG} -m "Version ${TAG}" +git tag ${TAG} for dir in $PACKAGE_DIRS do