Skip to content

Commit

Permalink
updates release workflow to use a single upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
auyer committed May 19, 2024
1 parent 1583c1e commit 8ded443
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,50 +69,20 @@ jobs:
cd target/debian
alien -k --to-rpm protonup-rs_${{ env.CURRENT_VERSION }}_amd64.deb
- name: Upload DEB package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/debian/protonup-rs_${{ env.CURRENT_VERSION }}_amd64.deb
asset_name: protonup-rs_${{ env.CURRENT_VERSION }}-1_amd64.deb
tag: v${{ env.CURRENT_VERSION }}
overwrite: true
draft: true

- name: Upload RPM package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/debian/protonup-rs-${{ env.CURRENT_VERSION }}-1.x86_64.rpm
asset_name: protonup-rs_${{ env.CURRENT_VERSION }}-1.x86_64.rpm
tag: v${{ env.CURRENT_VERSION }}
overwrite: true
draft: true

- name: Compress binary release artefacts
run: |
cd ./target/release
zip protonup-rs-linux-amd64.zip protonup-rs
tar -czvf protonup-rs-linux-amd64.tar.gz protonup-rs
- name: Upload Tar gzed binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/protonup-rs-linux-amd64.tar.gz
asset_name: protonup-rs-linux-amd64.tar.gz
tag: v${{ env.CURRENT_VERSION }}
overwrite: true
draft: true

- name: Upload Ziped binaries to release
- name: Upload Ziped,Tar gzed, DEB and RPM binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/protonup-rs-linux-amd64.zip
asset_name: protonup-rs-linux-amd64.zip
file: 'target/{release,debian}/protonup-rs**.{gz,zip,rpm,deb}'
tag: v${{ env.CURRENT_VERSION }}
overwrite: true
file_glob: true
draft: true

- name: Run cargo publish binary
Expand Down

0 comments on commit 8ded443

Please sign in to comment.