Compare commits

..

1 commit
v0.1.0 ... main

Author SHA1 Message Date
Leon Mika d62dafcc75 Merged MacOS and Linux releases
Some checks failed
ci / Build (push) Failing after 31s
2025-11-18 21:51:37 +11:00
3 changed files with 25 additions and 66 deletions

View file

@ -90,7 +90,7 @@ jobs:
go install github.com/goreleaser/goreleaser/v2@v2.12.7 go install github.com/goreleaser/goreleaser/v2@v2.12.7
- name: Release - name: Release
run: | run: |
goreleaser release -f macos.goreleaser.yml --skip=validate --clean goreleaser release -f goreleaser.yml --skip=validate --clean
env: env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_PRIVATE_KEY: ${{ secrets.HOMEBREW_TAP_PRIVATE_KEY }} HOMEBREW_TAP_PRIVATE_KEY: ${{ secrets.HOMEBREW_TAP_PRIVATE_KEY }}
@ -99,26 +99,3 @@ jobs:
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }} MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }} MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }} MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
# release-linux:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Setup Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.22
# - name: Configure
# run: |
# git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:x-oauth-basic@github.com/lmika".insteadOf "https://github.com/lmika"
# - name: Release
# uses: goreleaser/goreleaser-action@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# version: latest
# args: release -f linux.goreleaser.yml --skip=validate --clean
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}

View file

@ -1,12 +1,20 @@
version: 2 version: 2
builds: builds:
- id: ted - id: ted_macos
targets: targets:
- darwin_amd64 - darwin_amd64
- darwin_arm64 - darwin_arm64
env: env:
- CGO_ENABLED=1 - CGO_ENABLED=0
main: .
binary: ted
- id: ted_linux
targets:
- linux_amd64
- linux_arm64
env:
- CGO_ENABLED=0
main: . main: .
binary: ted binary: ted
@ -14,7 +22,7 @@ notarize:
macos: macos:
- enabled: true - enabled: true
ids: ids:
- ted - ted_macos
sign: sign:
certificate: "{{.Env.MACOS_SIGN_P12}}" certificate: "{{.Env.MACOS_SIGN_P12}}"
password: "{{.Env.MACOS_SIGN_PASSWORD}}" password: "{{.Env.MACOS_SIGN_PASSWORD}}"
@ -26,7 +34,15 @@ notarize:
timeout: 20m timeout: 20m
archives: archives:
- id: tgz - id: macos_tgz
ids:
- ted_macos
wrap_in_directory: false
formats:
- tar.gz
- id: linux_tgz
ids:
- ted_linux
wrap_in_directory: false wrap_in_directory: false
formats: formats:
- tar.gz - tar.gz
@ -36,10 +52,13 @@ release:
owner: cmd owner: cmd
name: ted name: ted
ids: ids:
- tgz - macos_tgz
- linux_tgz
homebrew_casks: homebrew_casks:
- name: ted - name: ted
ids:
- ted_macos
repository: repository:
owner: casks owner: casks
name: dynamo-browse name: dynamo-browse

View file

@ -1,37 +0,0 @@
builds:
- id: ted
targets:
- windows_amd64
- linux_amd64
env:
- CGO_ENABLED=1
main: ./cmd/ted/.
binary: dynamo-browse
archives:
- id: zip
builds:
- ted
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
- goos: linux
format: tar.gz
nfpms:
- id: package_nfpms
package_name: audax
builds:
- ted
vendor: lmika
homepage: https://ted.lmika.dev/
maintainer: Leon Mika <lmika@lmika.org>
description: TUI tools for working with CSV files
license: MIT
formats:
- deb
- rpm
bindir: /usr/local/bin
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"