Skip to content

Commit

Permalink
ci: update workflow to upload .deb file to gh packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandMeppa committed Sep 1, 2024
1 parent bd7aa42 commit 66b5986
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:

- name: Create directory structure for .deb
run: |
mkdir -p ${{ env.APP_NAME }}_${{ env.APP_VERSION }}/{DEBIAN,${{ env.INSTALL_PATH }},/usr/share/${{ env.APP_NAME }}/assets}
mkdir -p ${{ env.APP_NAME }}_${{ env.APP_VERSION }}/{DEBIAN,${{ env.INSTALL_PATH }}}
mv ${{ env.APP_NAME }} ${{ env.APP_NAME }}_${{ env.APP_VERSION }}/${{ env.INSTALL_PATH }}/
cp -r assets ${{ env.APP_NAME }}_${{ env.APP_VERSION }}/usr/share/${{ env.APP_NAME }}/
cp -r assets ${{ env.APP_NAME }}_${{ env.APP_VERSION }}/${{ env.INSTALL_PATH }}/
echo "Package: ${{ env.APP_NAME }}
Version: ${{ env.APP_VERSION }}
Section: base
Expand All @@ -69,7 +69,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
tag_name: v${{ env.APP_VERSION }}
release_name: ${{ env.APP_NAME }} v${{ env.APP_VERSION }}
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.APP_NAME }}_${{ env.APP_VERSION }}.deb
Expand Down

0 comments on commit 66b5986

Please sign in to comment.