-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (36 loc) · 1.46 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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') }}