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
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
build:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
# Assets can only be attached while the release is a draft, so
# skip the build entirely for releases created already-published.
if: github.event.release.draft
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,6 +61,11 @@ jobs:
key: ${{ matrix.target }}

- name: Build
env:
# Embed the release tag as the version. The tag itself does
# not exist until the release is published, so `git describe`
# cannot produce it while building a draft's assets.
PHPANTOM_GIT_VERSION: ${{ github.event.release.tag_name }}
run: cargo build --release --target ${{ matrix.target }}

# --- macOS: import certificate and sign the binary ---
Expand Down
Loading
Loading