Ignore #2 for kustomize #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Auto Release | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: set up go version | |
uses: actions/setup-go@v3 | |
- name: Go Build x64 | |
run: go build -o mani-diffy | |
- name: Go Build arm64 | |
run: GOOS=darwin GOARCH=arm64 go build -o mani-diffy-darwin-arm64 | |
- name: Create Release Text | |
run: echo ${{ github.sha }} > Release.txt | |
- name: Test Build x64 | |
run: file mani-diffy | grep "x86-64" | |
- name: Test Build arm64 | |
run: file mani-diffy-darwin-arm64 | grep "arm64" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
mani-diffy | |
mani-diffy-darwin-arm64 | |
Release.txt |