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 - name: Build and push image
run: | run: |
echo "GithubRef: ${GITHUB_REF}" echo "GithubRef: ${GITHUB_REF}"
IMAGE_VERSION=${GITHUB_REF:1} VERSION::${GITHUB_REF##*/}
echo "VERSION: ${VERSION}"
IMAGE_VERSION=${VERSION:1}
echo "IMAGE_VERSION: ${IMAGE_VERSION}" echo "IMAGE_VERSION: ${IMAGE_VERSION}"
PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64" PLATFORMS="linux/amd64,linux/ppc64le,linux/arm64"

View File

@ -3,6 +3,7 @@ on:
push: push:
tags: tags:
- 'v*' - 'v*'
- 'draftV*'
jobs: jobs:
publishGitRelease: publishGitRelease:
@ -44,18 +45,8 @@ jobs:
cp yq.1 build/yq.1 cp yq.1 build/yq.1
./scripts/xcompile.sh ./scripts/xcompile.sh
- name: Create Release - name: Release
id: create_release uses: softprops/action-gh-release@v1
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }} files: build/*
release_name: ${{ github.ref }} fail_on_unmatched_files: true
draft: true
prerelease: false
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/*

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: 4.24.2:
- Fixing release pipeline for go1.18 - Fixing release pipeline for go1.18