Skip to content

change: fix artifacts #8

change: fix artifacts

change: fix artifacts #8

Workflow file for this run

name: Create release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and run tests
run: make run-tests
- uses: actions/upload-artifact@v4
with:
name: libtokenizers.a
path: ./testTarget/libtokenizers.a
- uses: actions/upload-artifact@v4
with:
name: onnxruntime.so
path: ./testTarget/onnxruntime.so
release:
name: Release pushed tag
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/download-artifact@v4
with:
name: libtokenizers.a
path: ./libtokenizers.a
- uses: actions/download-artifact@v4
with:
name: onnxruntime.so
path: ./onnxruntime.so
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes \
'/home/runner/work/hugot/hugot/onnxruntime.so#onnxruntime.so' \
'/home/runner/work/hugot/hugot/libtokenizers.a#libtokenizers.a'