Skip to content

create release

create release #2

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' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- name: download windows portable artifacts
id: download_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
id: download_artifacts

Check failure on line 28 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / create release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 28, Col: 13): The identifier 'download_artifacts' may not be used more than once within the same scope.
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') }}