Skip to content

Merge pull request #279 from bbmilan/azure-cognitive-deployment-name #436

Merge pull request #279 from bbmilan/azure-cognitive-deployment-name

Merge pull request #279 from bbmilan/azure-cognitive-deployment-name #436

Workflow file for this run

name: Go
on:
push:
branches: [main]
tags:
- "v*"
pull_request:
branches: [main]
repository_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
id: go
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
# To be updated
# - name: lint
# uses: golangci/golangci-lint-action@v3
# # with:
# # version: 'v3.4.0'
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5.1.0
if: startsWith(github.ref, 'refs/tags/')
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: v1.10.3
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}