Skip to content

Go auto release workflows #8

Go auto release workflows

Go auto release workflows #8

Workflow file for this run

name: 'goreleaser'
on:
pull_request:
types: [ opened, synchronize, reopened ]
workflow_dispatch:
push:
branches:
- main
- release/v*
paths-ignore:
- '.github/**'
- 'docs/**'
- 'examples/**'
- 'test/**'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
permissions: {}
jobs:
build:
name: 'Build Binaries'
runs-on: ubuntu-latest
steps:
# Checkout the repo
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
# Setup Go
- name: 'Setup Go'
uses: actions/setup-go@v4
with:
go-version-file: go.mod
# Print Go version
- run: go version
# Trial build
- name: Test build
if: github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref_name != 'main')
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --config ./dev.goreleaser.yml --clean --snapshot
release:
if: github.event_name == 'push' &&

Check failure on line 56 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / goreleaser

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 56, Col: 9): Unexpected end of expression: '&&'. Located at position 29 within expression: github.event_name == 'push' &&
uses: cloudposse/.github/.github/workflows/shared-go-auto-release.yml@main
with:
publish: true
secrets: inherit