try create artifact

This commit is contained in:
James Ravenscroft 2023-04-14 09:39:27 +01:00
parent 4c7a08f971
commit d31bfe37be

View File

@ -44,22 +44,23 @@ jobs:
with:
length: 6
- name: package artifacts for release
#if: startsWith(github.ref, 'refs/tags/')
run: zip \
${{github.workspace}}/ggml/build/bin/codegen \
${{github.workspace}}/ggml/build/bin/codegen-serve \
${{github.workspace}}/ggml/build/bin/codegen-quantize \
${{github.workspace}}/ggml/build/bin/turbopilot-${{ runner.os }}-${{ runner.arch }}.zip
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: turbopilot-${{ runner.os }}-${{ runner.arch }}-${{ steps.short-sha.outputs.sha }} # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: ${{github.workspace}}/ggml/build/bin/codegen*
path: ${{github.workspace}}/ggml/build/bin/turbopilot-${{ runner.os }}-${{ runner.arch }}.zip
# The desired behavior if no files are found using the provided path.
- name: package artifacts for release
if: startsWith(github.ref, 'refs/tags/')
run: zip ${{github.workspace}}/ggml/build/bin/turbopilot-${{ runner.os }}-${{ runner.arch }}.zip \
${{github.workspace}}/ggml/build/bin/codegen \
${{github.workspace}}/ggml/build/bin/codegen-serve \
${{github.workspace}}/ggml/build/bin/codegen-quantize \
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')