Skip to content

Update README.md

Update README.md #13

Workflow file for this run

name: Go Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.4
- name: Build for Linux
run: GOOS=linux GOARCH=amd64 go build -o AuthInspector-linux-amd64
- name: Build for Windows
run: GOOS=windows GOARCH=amd64 go build -o AuthInspector-windows-amd64.exe
- name: Build for macOS
run: GOOS=darwin GOARCH=amd64 go build -o AuthInspector-darwin-amd64
- name: Archive binaries
uses: actions/upload-artifact@v2
with:
name: AuthInspector
path: |
AuthInspector-linux-amd64
AuthInspector-windows-amd64.exe
AuthInspector-darwin-amd64
# release:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Set up Git
# run: git config --global user.email "[email protected]" && git config --global user.name "GitHub Actions"
# - name: Create Tag
# run: git tag v${{ github.run_number }}
# - name: Push Tag
# run: git push origin v${{ github.run_number }}
# - name: Create Release
# id: create_release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# ./AuthInspector/AuthInspector-linux-amd64
# ./AuthInspector/AuthInspector-windows-amd64.exe
# ./AuthInspector/AuthInspector-darwin-amd64
# tag_name: v${{ github.run_number }}
# draft: false
# prerelease: false
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}