Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

EVEREST-429 Pre-release workflow #153

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release CLI artifacts
name: Pre-release CLI artifacts
on:
push:
tags:
- v*
branches:
- release-[0-9]+.[0-9]+.[0-9]+*

jobs:
build:
Expand All @@ -11,16 +11,22 @@ jobs:
- name: Check out
uses: actions/checkout@v4

- name: Set release version
run: echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Define release branch name
run: |
echo "RELEASE_BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Define tag name
run: |
echo "IMAGE_TAG=v${RELEASE_BRANCH_NAME#"release-"}" >> $GITHUB_ENV

- name: Build binaries
run: make release

- name: Create release with binaries
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
tag_name: ${{ env.IMAGE_TAG }}
files: |
dist/*
env:
Expand Down