Merge branch 'main' of https://github.com/karma9874/AuthInspector #3
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: 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 }} |