add github workflow to release binaries

This commit is contained in:
Joel Wetzell
2026-04-15 12:50:36 -05:00
parent f07276b858
commit 0e470d2e46
2 changed files with 56 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
- package-ecosystem: gomod
directory: /
schedule:
interval: "weekly"
+46
View File
@@ -0,0 +1,46 @@
name: "release go binaries for vagparser"
on:
push:
tags:
- 'vagparser/*'
permissions:
contents: write
packages: write
jobs:
create-release:
name: Create vagparser release
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
release-multi:
name: create binaries and upload
needs: create-release
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v6
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.26.2"
project_path: "./cmd/vagparser"
binary_name: "vagparser"
asset_name: vagparser-${{ matrix.goos }}-${{ matrix.goarch }}
release_name: ${{github.ref_name}}