Bump golang.org/x/crypto from 0.21.0 to 0.23.0 (#550) #761
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: goreleaser | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-22.04 | |
env: | |
GO111MODULE: on | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
- | |
name: System dependencies | |
run: sudo apt update && sudo apt install git golang -y || true | |
- | |
name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- | |
name: Create version helper | |
run: | | |
cat > service/library/version_state.go << EOF | |
package library | |
import ( | |
"fmt" | |
"strings" | |
) | |
var PYGMY_VERSION = "${GITHUB_REF}" | |
func printversion() bool { | |
parts := strings.Split(PYGMY_VERSION, "/") | |
if PYGMY_VERSION == "" { | |
return false | |
} | |
fmt.Printf("Pygmy version v%v\n", parts[len(parts)-1]) | |
return true | |
} | |
EOF | |
- | |
name: Fetch Dependencies | |
run: go mod vendor | |
- | |
name: Print version string | |
run: go run main.go version | |
- | |
name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --debug --skip-validate | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |