Skip to content

feature: upgrade go, add -version flag, more bin arch (#1) #4

feature: upgrade go, add -version flag, more bin arch (#1)

feature: upgrade go, add -version flag, more bin arch (#1) #4

name: Release new action version
on:
workflow_dispatch:
inputs:
reason:
description: 'run release action reason'
required: false
type: string
default: 'manually test'
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- name: Check Go Version and Install Go Dep
run: |
go version
go mod vendor
- name: Build
run: make all
- name: Generate Release.txt
run: |
echo ${{ github.sha }} > Release.txt
cat Release.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/xca-linux-amd64
bin/xca-linux-arm64
bin/xca-linux-ppc64le
bin/xca-linux-s390x
bin/xca-darwin-amd64
bin/xca-darwin-arm64
bin/xca-windows-amd64.exe
Release.txt
LICENSE