Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 8565e10

Browse files
committed
fix(CI): try to fix CI, do not build from tag in golang-ci
1 parent 0abf0d4 commit 8565e10

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permissions:
1313
env:
1414
# Use repo name as binary name by default; override if you need.
1515
BINARY_NAME: ${{ github.event.repository.name }}
16+
# Path to main of golang code
17+
BUILD_PATH: ./cmd/postgres
1618
# Common ldflags: inject version and commit; trim paths; strip symbols.
1719
LDFLAGS: >-
1820
-s -w
@@ -65,7 +67,6 @@ jobs:
6567
PKG="${BIN}_${{ matrix.os }}_${{ matrix.arch }}"
6668
OUTDIR="dist/${PKG}"
6769
ARCHIVE="${PKG}.tar.gz"
68-
6970
echo "bin=${BIN}" >> $GITHUB_OUTPUT
7071
echo "pkg=${PKG}" >> $GITHUB_OUTPUT
7172
echo "outdir=${OUTDIR}" >> $GITHUB_OUTPUT
@@ -79,18 +80,18 @@ jobs:
7980
run: |
8081
mkdir -p "${{ steps.names.outputs.outdir }}"
8182
go build -trimpath -ldflags "${LDFLAGS}" \
82-
-o "${{ steps.names.outputs.outdir }}/${{ steps.names.outputs.bin }}" cmd/postgres
83+
-o "${{ steps.names.outputs.outdir }}/${{ steps.names.outputs.bin }}" \
84+
"${BUILD_PATH}"
8385
86+
# [ -f ../README.md ] && EXTRAS+=("../README.md")
87+
# [ -f ../LICENSE ] && EXTRAS+=("../LICENSE")
8488
- name: Package (.tar.gz)
8589
shell: bash
86-
# [ -f ../README.md ] && EXTRAS+=("../README.md")
87-
# [ -f ../LICENSE ] && EXTRAS+=("../LICENSE")
8890
run: |
8991
cd dist
9092
PKG="${{ steps.names.outputs.pkg }}"
9193
OUTDIR="${PKG}"
9294
EXTRAS=()
93-
9495
tar -C "${OUTDIR}" -czf "${{ steps.names.outputs.archive }}" . ${EXTRAS[@]+"${EXTRAS[@]}"}
9596
9697
- name: Upload artifact
@@ -125,11 +126,7 @@ jobs:
125126
uses: softprops/action-gh-release@v2
126127
with:
127128
tag_name: ${{ github.ref_name }}
128-
name: Release ${{ github.ref_name }}
129-
make_latest: true
130-
draft: false
131-
prerelease: false
132-
generate_release_notes: true
133-
body: |
134-
Release ${{ github.ref_name }} contains stroppy postgres driver binaries for run with stroppy
135129
files: ${{ steps.gather.outputs.files }}
130+
generate_release_notes: true
131+
env:
132+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)