Skip to content

Commit 48c456b

Browse files
committed
restore old release step
1 parent 917226b commit 48c456b

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish to ghcr.io
22

33
on:
44
push:
5-
branches: [ 'main' ] # only for testing purposes
6-
tags: [ '*' ]
5+
tags:
6+
- '*'
77

88
env:
99
REGISTRY: ghcr.io # default is docker.io
@@ -33,7 +33,6 @@ jobs:
3333
# echo "RUBIN_VERSION=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
3434
# echo "RUBIN_BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_ENV"
3535
- name: Run GoReleaser to build and release binaries (only once on linux/amd64)
36-
id: goreleaser
3736
uses: goreleaser/goreleaser-action@v6
3837
with:
3938
distribution: goreleaser
@@ -48,23 +47,13 @@ jobs:
4847
# copy platform specific binary in actual image (the other one was built in vain, but it's fast :-))
4948
# see also https://goreleaser.com/customization/builds/#why-is-there-a-_v1-suffix-on-amd64-builds
5049
run: |
51-
echo "Artifacts:"
52-
echo ${{steps.goreleaser.outputs.artifacts}}
53-
# {"project_name":"rubin","tag":"v0.9.1","previous_tag":"v0.9.0","version":"0.9.1","commit":"de4fbb79aab8bc21ff05608109bb82043c5b3b92","date":"2025-06-02T17:01:49.945018501Z","runtime":{"goos":"linux","goarch":"amd64"}}
54-
echo "Metadata:"
55-
echo ${{steps.goreleaser.outputs.metadata}}
56-
echo "Files:"
57-
find dist/
58-
#for arch in amd64 arm64; do
59-
# mkdir -p app/linux/$arch
60-
# example archive name=dist/rubin_0.9.1_linux_amd64.zip
61-
# see .goreleaser.yml name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
62-
#mv -v dist/${{ github.event.repository.name }}_${{steps.goreleaser.outputs.metadata.version}}_linux_amd64_v1/${{ github.event.repository.name }} \
63-
# app/linux/amd64/${{ github.event.repository.name }}
64-
#mv -v dist/${{ github.event.repository.name }}_linux_arm64/${{ github.event.repository.name }} \
65-
# app/linux/arm64/${{ github.event.repository.name }}
66-
#mv -v dist/polly_linux_amd64_v1/polly app/linux/amd64/polly
67-
#mv -v dist/polly_linux_arm64/polly app/linux/arm64/polly
50+
mkdir -p app/linux/amd64 app/linux/arm64
51+
mv -v dist/${{ github.event.repository.name }}_linux_amd64_v1/${{ github.event.repository.name }} \
52+
app/linux/amd64/${{ github.event.repository.name }}
53+
mv -v dist/${{ github.event.repository.name }}_linux_arm64_v8.0/${{ github.event.repository.name }} \
54+
app/linux/arm64/${{ github.event.repository.name }}
55+
mv -v dist/polly_linux_amd64_v1/polly app/linux/amd64/polly
56+
mv -v dist/polly_linux_arm64_v8.0/polly app/linux/arm64/polly
6857
6958
- name: Upload binaries built by go-releaser
7059
uses: actions/upload-artifact@v4

.goreleaser.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# • building binary=dist/rubin_darwin_arm64/rubin
1515
# • building binary=dist/rubin_darwin_amd64_v1/rubin
1616
# • building binary=dist/rubin_linux_arm64/rubin
17-
1817
version: 2
1918
before:
2019
hooks:
@@ -62,9 +61,7 @@ builds:
6261
main: ./cmd/polly
6362
binary: polly
6463

65-
# https://goreleaser.com/customization/archive/
6664
archives:
6765
- format: zip
68-
# name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
6966
files:
7067
- none*

0 commit comments

Comments
 (0)