Comments (4)
you are likely not running it against a tag.
from goreleaser-action.
This is still causing a problem:
github action:
name: Release Pipeline
on:
push:
tags:
- "*"
jobs:
release:
name: Release New Version
runs-on: ubuntu-latest
steps:
- name: Check Out Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "./go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.goreleaser yaml (I was under the impression the ldflag i want was default, but just to be sure i tried this)
project_name: grole
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X main.version={{.Version}}
main.go
var version = "dev"
func main(){
fmt.Printf("version: %s 👍\n", version)
}
I've taken lots of functionality out of my main.go, but this is the jist of the issue. This always causes version: dev 👍
to be printed
Thanks
from goreleaser-action.
can you make a minimal reproducible example repository?
from goreleaser-action.
Related Issues (20)
- Go Lang 1.18 support HOT 1
- Windows binary signing issue via goreleaser HOT 1
- syft not found HOT 4
- private repos HOT 2
- Action `artifacts` output is empty HOT 11
- How to re-run without re-releasing? HOT 3
- Action install fails HOT 1
- how to: run makefile in repo to build app? HOT 1
- Supprt tags in sub ref directory? HOT 8
- choco not working in actions HOT 1
- goreleaser workflow testing with `--snapshot` on `pull_request` no longer works in V4 HOT 4
- cannot find GoReleaser latest version HOT 18
- The process '/opt/hostedtoolcache/goreleaser-action/1.15.2/x64/goreleaser' failed with exit code 1 HOT 7
- YAML parse error when .goreleaser.yml contains anchor HOT 3
- Env variables not available in post-build hooks HOT 2
- accept goreleaser configuration file as a parameter HOT 3
- How can i specific file into released archive file HOT 2
- latest reports the previous version HOT 1
- Is that possible to publish archive files into the release drafter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goreleaser-action.