Skip to content

Commit

Permalink
correct path binary file linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh authored and jan-service-account committed Jul 25, 2024
1 parent eddfd76 commit 7b68249
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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 }}
Expand Down

0 comments on commit 7b68249

Please sign in to comment.