Skip to content

create release

create release #8

Workflow file for this run

name: "create release"
on:
workflow_run:
workflows: ["build python app executable"]
types: ["completed"]
permissions:
contents: write
jobs:
create_release:
if: github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.referenced_workflows[0].ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: download windows portable artifacts
uses: actions/download-artifact@v4
with:
pattern: portable_basiliskLLM_${{ github.event.workflow_run.jobs.build_windows.version_number }}_*
path: ${{ github.workspace }}/artifacts
- name: re-zip portable artifacts
run: |
for d in ${{ github.workspace }}/artifacts/portable_basiliskLLM_${{ github.event.workflow_run.jobs.build_windows.version_number }}_*; do
zip -r -9 $d.zip $d
rm -rf $d
done
- name: download windows installer artifacts
uses: actions/download-artifact@v4
with:
pattern: setup_basiliskLLM_${{ github.event.workflow_run.jobs.build_windows.version_number }}_*
path: ${{ github.workspace }}/artifacts
- name: create release
uses: softprops/action-gh-release@v2
with:
files: |
${{ github.workspace }}/artifacts/*
tag_name: ${{ github.ref }}
draft: true
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}