Skip to content

Commit

Permalink
build: limits release build to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Jun 2, 2023
1 parent 2a00059 commit 179d578
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/cli-release.yml
Expand Up @@ -2,19 +2,15 @@ name: Release CLI Binary

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

permissions:
contents: write

jobs:
release:
runs-on: ubuntu
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Install Earthly
Expand All @@ -25,6 +21,5 @@ jobs:
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 179d578

Please sign in to comment.