From 7b682490883cfc01430113b74a182b605b5d622f Mon Sep 17 00:00:00 2001 From: Hien To Date: Wed, 24 Jul 2024 23:45:38 +0700 Subject: [PATCH] correct path binary file linux --- .github/workflows/cortex-build.yml | 31 ++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cortex-build.yml b/.github/workflows/cortex-build.yml index 54cf87c16..a65059b0b 100644 --- a/.github/workflows/cortex-build.yml +++ b/.github/workflows/cortex-build.yml @@ -398,6 +398,17 @@ jobs: asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz asset_content_type: application/gzip + - name: Upload Cortex Installer + uses: actions/upload-release-asset@v1.0.1 + if: runner.os == 'Windows' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: ./cortex-js/setup.exe + asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.exe + asset_content_type: application/octet-stream + - uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -423,7 +434,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: cortex-linux - path: ./cortex + path: ./cortex-js/cortex update_release_draft: needs: [build-and-test, build-cortex-single-binary] @@ -458,14 +469,21 @@ jobs: permissions: contents: read steps: + - name: Clone + id: checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Download artifact uses: actions/download-artifact@v2 with: name: cortex-linux - path: ./cortex + path: ./cortex-linux - name: install dependencies run: | + ls -al ./cortex-linux sudo apt-get install dput devscripts build-essential debhelper-compat pbuilder debootstrap devscripts -y - name: import gpg key with subkey @@ -476,9 +494,10 @@ jobs: fingerprint: ${{ secrets.HOMEBREW_GPG_FINGERPRINT }} - run: | - cp ./cortex/cortex package-managers-template/launchpad/cortexso/ - mv package-managers-template/launchpad/cortexso package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }} - + mkdir -p package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian + cp package-managers-template/launchpad/cortexso/debian/* package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/ + cp ./cortex-linux/cortex package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/ + - name: Get release notes id: release_notes run: | @@ -490,7 +509,7 @@ jobs: sed -i "s/CHANGELOG_HERE/${{ env.RELEASE_NOTES }}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog timestamp=$(date -u +"%a, %d %b %Y %H:%M:%S +0000") sed -i "s/TIME_HERE/${timestamp}/g" package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}/debian/changelog - + - name: Build package run: | cd package-managers-template/launchpad/cortexso-${{ needs.create-draft-release.outputs.version }}