Skip to content

Fix #248 azurerm_powerbi_embedded #410

Fix #248 azurerm_powerbi_embedded

Fix #248 azurerm_powerbi_embedded #410

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/[email protected]
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 }}