Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ parameters:
defaults: &defaults
resource_class: large
docker:
- image: bepsays/ci-hugoreleaser:1.22500.20300
- image: bepsays/ci-hugoreleaser:1.22500.20400
environment: &buildenv
GOMODCACHE: /root/project/gomodcache
version: 2
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
environment:
<<: [*buildenv]
docker:
- image: bepsays/ci-hugoreleaser-linux-arm64:1.22500.20300
- image: bepsays/ci-hugoreleaser-linux-arm64:1.22500.20400
steps:
- *restore-cache
- &attach-workspace
Expand Down
71 changes: 58 additions & 13 deletions hugoreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@ project: hugo

# Common definitions.
definitions:
archive_type_macos: &archive_type_macos
extra_files: []
type:
format: _plugin
extension: .pkg
plugin:
id: macospkgremote
type: gorun
command: github.com/gohugoio/hugoreleaser-archive-plugins/macospkgremote@latest
custom_settings:
package_identifier: io.gohugo.hugo
package_version: ${HUGORELEASER_TAG}
bucket: s3fptest
queue: https://sqs.eu-north-1.amazonaws.com/656975317043/s3fptest_client
access_key_id: ${S3RPC_CLIENT_ACCESS_KEY_ID}
secret_access_key: ${S3RPC_CLIENT_SECRET_ACCESS_KEY}
archive_type_zip: &archive_type_zip
type:
format: zip
Expand Down Expand Up @@ -94,9 +110,6 @@ release_settings:
builds:
- path: container1/unix/regular
os:
- goos: darwin
archs:
- goarch: universal
- goos: linux
archs:
- goarch: amd64
Expand Down Expand Up @@ -131,11 +144,6 @@ builds:
env:
- CGO_ENABLED=1
os:
- goos: darwin
build_settings:
env: *env_extended_darwin
archs:
- goarch: universal
- goos: linux
archs:
- goarch: amd64
Expand All @@ -149,11 +157,6 @@ builds:
env:
- CGO_ENABLED=1
os:
- goos: darwin
build_settings:
env: *env_extended_darwin
archs:
- goarch: universal
- goos: linux
archs:
- goarch: amd64
Expand Down Expand Up @@ -183,6 +186,35 @@ builds:
env: *env_extended_linux
archs:
- goarch: arm64
- path: container1/macos/regular
os:
- goos: darwin
archs:
- goarch: universal
- path: container1/macos/extended
build_settings:
flags:
- -buildmode
- exe
- -tags
- extended
env: *env_extended_darwin
os:
- goos: darwin
archs:
- goarch: universal
- path: container1/macos/extended-withdeploy
build_settings:
flags:
- -buildmode
- exe
- -tags
- extended,withdeploy
env: *env_extended_darwin
os:
- goos: darwin
archs:
- goarch: universal
- path: container1/windows/regular
os:
- goos: windows
Expand Down Expand Up @@ -240,6 +272,19 @@ archives:
- builds/container2/*/extended-withdeploy/**
archive_settings:
name_template: *name_template_extended_withdeploy
- paths:
- builds/**/macos/regular/**
archive_settings: *archive_type_macos
- paths:
- builds/**/macos/extended/**
archive_settings:
name_template: *name_template_extended
<<: *archive_type_macos
- paths:
- builds/**/macos/extended-withdeploy/**
archive_settings:
name_template: *name_template_extended_withdeploy
<<: *archive_type_macos
- paths:
- builds/**/windows/regular/**
archive_settings: *archive_type_zip
Expand Down
Loading