Skip to content

Release Go binaries as GitHub Release assets.

License

Notifications You must be signed in to change notification settings

altipla-consulting/go-release.actions

Repository files navigation

go-release.actions

Release Go binaries as GitHub Release assets.

Usage

on: 
  release:
    types: [created]

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@master

    - name: Configure Go
      uses: actions/setup-go@v2
      with:
        go-version: 1.14.7

    - name: Release mytool
      uses: altipla-consulting/go-release.actions@main
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        source: ./cmd/mytool
        name: mytool