Compare commits
4 Commits
35dedc171e
...
bfc0e58319
| Author | SHA1 | Date |
|---|---|---|
|
|
bfc0e58319 | |
|
|
077696151a | |
|
|
0de619c694 | |
|
|
7079b6385d |
|
|
@ -3,6 +3,7 @@ name: Cross-platform builds
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ['v*']
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
|
@ -61,3 +62,32 @@ jobs:
|
|||
path: zdxc-${{ matrix.name }}.tar.gz
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
release:
|
||||
name: Publish release binaries
|
||||
needs: build
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Download all platform bundles
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
pattern: zdxc-*
|
||||
path: artifacts
|
||||
merge-multiple: true
|
||||
|
||||
- name: Create or update GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
if gh release view "$TAG" >/dev/null 2>&1; then
|
||||
gh release upload "$TAG" artifacts/*.tar.gz --clobber
|
||||
else
|
||||
gh release create "$TAG" artifacts/*.tar.gz \
|
||||
--verify-tag --title "zdxc $TAG" --generate-notes
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue