Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffw16 authored Mar 14, 2023
1 parent 437d902 commit c25a533
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
#This workflow will build and publish a release of Canasta-CLI on pushing to the 'releases' branch.
#It also automatically grabs the current latest version and increments the minor version.
# This workflow will build and publish a release of Canasta-CLI on pushing to the 'releases' branch.
# It also automatically grabs the current latest version and increments the minor version.

name: Go
name: Go build

on:
push:
branches: [ "releases" ]
branches:
- main

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build
run: sh build.sh

- name: Upload executable for job build
uses: actions/upload-artifact@v3
with:
name: executable
path: ./Canasta-CLI-Go



release:
runs-on: ubuntu-latest
needs: build
Expand All @@ -38,10 +32,8 @@ jobs:
uses: actions/download-artifact@v3
with:
name: executable

- name: Rename executable
run: mv Canasta-CLI-Go canasta

- name: Generate Version Tag
id: generate
run: |
Expand All @@ -54,8 +46,6 @@ jobs:
new_version=$(echo "v$major_version.$minor_version.$patch_version")
echo $new_version
echo "new_version=$new_version" >> $GITHUB_OUTPUT

- name: Publish
uses: softprops/action-gh-release@v1
id: publish
Expand Down

0 comments on commit c25a533

Please sign in to comment.