Skip to content

Commit

Permalink
fix ci?
Browse files Browse the repository at this point in the history
  • Loading branch information
loudar authored and loudar committed Jun 23, 2024
1 parent afca38b commit 7a99c29
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ jobs:
- name: Build Linux
run: npm run make

- name: Zip Linux
run: |
cd out/fetchcat-linux-x64
7z a -tzip ../../fetchcat-linux-x64.zip .
- name: Get version
id: package
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
Expand All @@ -63,13 +58,24 @@ jobs:
asset_name: fetchcat-win.zip
asset_content_type: application/octet-stream

- name: Upload Linux
id: upload-release-asset-linux
- name: Upload Linux Debian
id: upload-release-asset-linux-debian
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: out/make/deb/x64/fetchcat_${{ steps.package.outputs.version }}_amd64.deb
asset_name: fetchcat-linux.deb
asset_content_type: application/octet-stream

- name: Upload Linux RPM
id: upload-release-asset-linux-rpm
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: fetchcat-linux-x64.zip
asset_name: fetchcat-linux.zip
asset_path: out/make/rpm/x64/fetchcat-${{ steps.package.outputs.version }}-1.x86_64.rpm
asset_name: fetchcat-linux.rpm
asset_content_type: application/octet-stream

0 comments on commit 7a99c29

Please sign in to comment.