Skip to content

Commit

Permalink
Update build.yml to fix builds/ directory not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
harshrai654 authored May 19, 2024
1 parent 94a9c22 commit cc9ee20
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: Build and Publish Executables

on:
push:
branches:
- main
tags:
- "release-v*"
- "release-v-*"

workflow_dispatch:
inputs:
tag:
description: "Release tag"
required: true
default: "release-v-latest"

jobs:
build-and-publish:
Expand All @@ -17,7 +22,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.22"
go-version: "1.18" # Update to the latest supported Go version

- name: Prepare build directories
run: |
mkdir -p builds/cli
mkdir -p builds/server
- name: Build CLI executables
working-directory: cli
Expand All @@ -38,6 +48,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: builds/*
files: |
builds/cli/*
builds/server/*
tag_name: ${{ github.ref }}
generate_release_notes: true

0 comments on commit cc9ee20

Please sign in to comment.