Skip to content
Closed
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
10 changes: 7 additions & 3 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,17 @@ jobs:

# Create the release once; on later runs it already exists and only
# the assets are replaced (--clobber makes re-runs idempotent).
# This job has no checkout (it only ships artifacts), so gh cannot
# discover the repository from a .git directory — every call passes
# -R explicitly or dies with "failed to run git: fatal: not a git
# repository" (issue #117).
- name: Publish to the builds release
env:
GH_TOKEN: ${{ github.token }}
run: |
if ! gh release view builds >/dev/null 2>&1; then
gh release create builds \
if ! gh release view builds -R "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
gh release create builds -R "$GITHUB_REPOSITORY" \
--title "Oliver prebuilt binaries" \
--notes "Rolling prebuilt binaries for the current tip of main — linux/macos (x86_64, aarch64) and windows-x86_64, each smoke-tested natively in CI before publishing. Download URL: https://github.com/drawmeanelephant/oliver/releases/download/builds/oliver-<os>-<arch>"
fi
gh release upload builds dist/* sha256sums.txt --clobber
gh release upload builds dist/* sha256sums.txt --clobber -R "$GITHUB_REPOSITORY"