Skip to content

Commit

Permalink
build: adds release workflow for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Jun 2, 2023
1 parent 20e2331 commit 2a00059
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cli-release.yml
@@ -0,0 +1,30 @@
name: Release CLI Binary

on:
push:
branches:
- master
paths:
- ".github/workflows/cli-release.yml"
- "cli/**"

permissions:
contents: write

jobs:
release:
runs-on: ubuntu
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Install Earthly
uses: earthly/actions-setup@v1
with:
version: 0.7.6
- name: Build CLI
run: earthly ./cli+build && mv ./cli/bin/ci ci-linux-amd64
- name: Release CLI
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./cli/bin/ci

0 comments on commit 2a00059

Please sign in to comment.