Trying new release process

This commit is contained in:
Mike Farah 2022-04-12 09:33:52 +10:00
parent 217744bc9a
commit 454e563a0e
3 changed files with 13 additions and 15 deletions

View File

@ -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"

View File

@ -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

View File

@ -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