Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

3 changed files with 66 additions and 25 deletions

View file

@ -90,7 +90,7 @@ jobs:
go install github.com/goreleaser/goreleaser/v2@v2.12.7
- name: Release
run: |
goreleaser release -f goreleaser.yml --skip=validate --clean
goreleaser release -f macos.goreleaser.yml --skip=validate --clean
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_PRIVATE_KEY: ${{ secrets.HOMEBREW_TAP_PRIVATE_KEY }}
@ -99,3 +99,26 @@ jobs:
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_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 }}

37
linux.goreleaser.yml Normal file
View file

@ -0,0 +1,37 @@
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"

View file

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