Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten committed Sep 10, 2024
1 parent cdafc67 commit e50c7fe
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: goreleaser

on:
push:
tags:
- 'v*'
branches:
- gorelease

jobs:
goreleaser:
Expand All @@ -21,6 +21,6 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --clean
args: release --clean --snapshot -f .goreleaser-nighly.yml
env:
GITHUB_TOKEN: ${{secrets.GH_PAT}}
52 changes: 52 additions & 0 deletions .goreleaser-nighly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
builds:
- binary: task
main: ./cmd/task
goos:
- windows
- darwin
- linux
- freebsd
goarch:
- '386'
- amd64
- arm
- arm64
- riscv64
goarm:
- '6'
ignore:
- goos: darwin
goarch: '386'
- goos: darwin
goarch: riscv64
- goos: windows
goarch: riscv64
env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w # Don't set main.version.

gomod:
proxy: true

archives:
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"
files:
- README.md
- LICENSE
- completion/**/*
format_overrides:
- goos: windows
format: zip

release:
draft: true

snapshot:
name_template: "{{.Tag}}"

checksum:
name_template: "task_checksums.txt"

0 comments on commit e50c7fe

Please sign in to comment.