Bump golang.org/x/crypto from 0.1.0 to 0.17.0 #4
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: Build SSHizzle | |
on: | |
push: | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
build: | |
name: Build and Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get tag | |
id: tag | |
uses: dawidd6/action-get-tag@v1 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Build | |
run: | | |
VERSION=$(echo $REF | cut -d "/" -f3) | |
echo $VERSION | |
GOOS=windows GOARCH=386 go build -o ./bin/sshizzle-ca-$VERSION-windows-amd64.exe ./cmd/sshizzle-ca/sshizzle-ca.go | |
go build -o ./bin/sshizzle-agent-$VERSION-linux-amd64 ./cmd/sshizzle-agent/sshizzle-agent.go | |
go build -o ./bin/sshizzle-host-$VERSION-linux-amd64 ./cmd/sshizzle-host/sshizzle-host.go | |
env: | |
REF: ${{ github.ref }} | |
- name: Release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
./bin/* |