Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 7b68249

Browse files
hiento09jan-service-account
authored andcommitted
correct path binary file linux
1 parent eddfd76 commit 7b68249

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/cortex-build.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,17 @@ jobs:
398398
asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz
399399
asset_content_type: application/gzip
400400

401+
- name: Upload Cortex Installer
402+
uses: actions/[email protected]
403+
if: runner.os == 'Windows'
404+
env:
405+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
406+
with:
407+
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
408+
asset_path: ./cortex-js/setup.exe
409+
asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.exe
410+
asset_content_type: application/octet-stream
411+
401412
- uses: actions/[email protected]
402413
env:
403414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -423,7 +434,7 @@ jobs:
423434
uses: actions/upload-artifact@v2
424435
with:
425436
name: cortex-linux
426-
path: ./cortex
437+
path: ./cortex-js/cortex
427438

428439
update_release_draft:
429440
needs: [build-and-test, build-cortex-single-binary]
@@ -458,14 +469,21 @@ jobs:
458469
permissions:
459470
contents: read
460471
steps:
472+
- name: Clone
473+
id: checkout
474+
uses: actions/checkout@v4
475+
with:
476+
submodules: recursive
477+
461478
- name: Download artifact
462479
uses: actions/download-artifact@v2
463480
with:
464481
name: cortex-linux
465-
path: ./cortex
482+
path: ./cortex-linux
466483

467484
- name: install dependencies
468485
run: |
486+
ls -al ./cortex-linux
469487
sudo apt-get install dput devscripts build-essential debhelper-compat pbuilder debootstrap devscripts -y
470488
471489
- name: import gpg key with subkey
@@ -476,9 +494,10 @@ jobs:
476494
fingerprint: ${{ secrets.HOMEBREW_GPG_FINGERPRINT }}
477495

478496
- run: |
479-
cp ./cortex/cortex package-managers-template/launchpad/cortexso/
480-
mv package-managers-template/launchpad/cortexso package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}
481-
497+
mkdir -p package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian
498+
cp package-managers-template/launchpad/cortexso/debian/* package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/
499+
cp ./cortex-linux/cortex package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/
500+
482501
- name: Get release notes
483502
id: release_notes
484503
run: |
@@ -490,7 +509,7 @@ jobs:
490509
sed -i "s/CHANGELOG_HERE/${{ env.RELEASE_NOTES }}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog
491510
timestamp=$(date -u +"%a, %d %b %Y %H:%M:%S +0000")
492511
sed -i "s/TIME_HERE/${timestamp}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog
493-
512+
494513
- name: Build package
495514
run: |
496515
cd package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}

0 commit comments

Comments
 (0)