Skip to content

Commit 3510a7b

Browse files
authored
upload releases (#2)
1 parent 9bb8342 commit 3510a7b

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "v*"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
912
env:
1013
CARGO_TERM_COLOR: always
1114
DATABASE_URL: postgresql://pointer:pointer@localhost:5432/pointer
@@ -100,11 +103,12 @@ jobs:
100103
for bin in pointer-backend pointer-indexer; do
101104
BIN_PATH="$(find target -path "*/release/${bin}" -type f | head -n1)"
102105
cp "$BIN_PATH" "artifacts/${bin}"
103-
tar -czf "artifacts/${bin}.tar.gz" -C artifacts "${bin}"
104106
done
105-
106-
- name: Upload artifacts
107-
uses: actions/upload-artifact@v4
108-
with:
109-
name: pointer-release-artifacts
110-
path: artifacts/*.tar.gz
107+
tar -czf "artifacts/pointer-linux-amd64.tar.gz" -C artifacts .
108+
109+
- name: Release
110+
uses: softprops/action-gh-release@v2
111+
if: github.ref_type == 'tag'
112+
with:
113+
files: artifacts/pointer-linux-amd64.tar.gz
114+
generate_release_notes: true

0 commit comments

Comments
 (0)