Create release and upload assets

This commit is contained in:
Arnaud
2025-10-13 09:16:11 +02:00
parent 31ff63e463
commit c55078bd2b
2 changed files with 16 additions and 240 deletions
+16 -14
View File
@@ -2,9 +2,9 @@ name: Artifacts
on:
push:
tags:
- "v*"
workflow_dispatch:
# tags:
# - 'v*'
jobs:
build:
@@ -87,15 +87,17 @@ jobs:
vendor/nim-codex/library/libcodex.h
if-no-files-found: error
# publish-release:
# needs: build
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/download-artifact@v4
# with:
# path: dist
# - name: Create release draft
# uses: softprops/action-gh-release@v1
# with:
# files: dist/**/codex-*.{tar.gz,zip}
# draft: true
publish-release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v5
with:
path: dist
- name: Create release
uses: softprops/action-gh-release@v2
with:
body_path: ${{ github.workspace }}-RELEASE.md
files: dist/**
draft: true