Skip to content

correct the makefile for release process #2

correct the makefile for release process

correct the makefile for release process #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Get version from tag
id: get_version
run: echo "::set-output name=version::${GITHUB_REF##*/}"
- name: Build binary
run: make build VERSION=${{ steps.get_version.outputs.version }}
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_version.outputs.version }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload binary to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./notify_incident_io
asset_name: notify_incident_io
asset_content_type: application/octet-stream