From b839dfc5d81f6101b2582e9a6fa3df56e8077edf Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Thu, 29 Aug 2024 18:13:44 +0200 Subject: [PATCH] build_release update to commit README properly and react only to release events (#10) --- .github/workflows/build-release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 7f3f7d4..c2df534 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -1,8 +1,7 @@ name: Build release on: - push: - tags: - - '**' + release: + types: [published] jobs: build_release: runs-on: ubuntu-latest @@ -18,8 +17,7 @@ jobs: echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Checkout sources uses: actions/checkout@v4.1.7 - with: - ref: ${{ github.head_ref }} + - run: git switch - - name: Setup Java uses: actions/setup-java@v4.2.2 with: