Skip to content

Commit

Permalink
Create a release based on a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneazaceta authored Aug 2, 2024
1 parent fa197f9 commit 1042498
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ name: Go

on:
push:
branches: [ "master" ]
pull_request:
branches: ["master" ]
branches: [ "new-ci-workflow" ]
tags: 'v*'

jobs:
build:
Expand All @@ -31,3 +30,14 @@ jobs:

- name: Build for "Inlet Temp" sensor (ekhi)
run: go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=Inlet Temp'" -o ipmitool_exporter-ekhi ./main.go

- name: Create a release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
files: |
ipmitool_exporter
ipmitool_exporter-ekhi

0 comments on commit 1042498

Please sign in to comment.