From 454e563a0e83ad6914db209eef3224f58fe9cbd5 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 12 Apr 2022 09:33:52 +1000 Subject: [PATCH] Trying new release process --- .github/workflows/docker-release.yml | 4 +++- .github/workflows/release.yml | 19 +++++-------------- release_notes.txt | 5 +++++ 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 0b501ef2..09546605 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -33,7 +33,9 @@ jobs: - name: Build and push image run: | echo "GithubRef: ${GITHUB_REF}" - IMAGE_VERSION=${GITHUB_REF:1} + VERSION::${GITHUB_REF##*/} + echo "VERSION: ${VERSION}" + IMAGE_VERSION=${VERSION:1} echo "IMAGE_VERSION: ${IMAGE_VERSION}" PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab78628b..50e53367 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ on: push: tags: - 'v*' + - 'draftV*' jobs: publishGitRelease: @@ -44,18 +45,8 @@ jobs: cp yq.1 build/yq.1 ./scripts/xcompile.sh - - name: Create Release - id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: true - prerelease: false - - - uses: shogo82148/actions-upload-release-asset@v1 - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: build/* + files: build/* + fail_on_unmatched_files: true diff --git a/release_notes.txt b/release_notes.txt index 29633652..fbe67566 100644 --- a/release_notes.txt +++ b/release_notes.txt @@ -1,3 +1,8 @@ +4.24.3: + - Added from_props + - Re-releasing, 4.24.2 release failed to publish correctly. + + 4.24.2: - Fixing release pipeline for go1.18