Skip to content

Commit

Permalink
correct path binary file linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hiento09 committed Jul 25, 2024
1 parent eddfd76 commit 466fbcc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,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 +458,18 @@ jobs:
permissions:
contents: read
steps:
- name: checkout
uses: actions/checkout@v4

- 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 +480,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,11 +495,11 @@ 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 }}
echo "y" | debuild -S -sa -k ${{ secrets.HOMEBREW_GPG_FINGERPRINT }}
echo "y" | debuild -S -sa -k${{ secrets.HOMEBREW_GPG_FINGERPRINT }}
sudo sudo pbuilder build ../cortexso_${{ needs.create-draft-release.outputs.version }}.dsc
dput ppa:cortexlabs/cortex cortexso_${{ needs.create-draft-release.outputs.version }}_source.changes

0 comments on commit 466fbcc

Please sign in to comment.