Skip to content

Commit

Permalink
chore: multipart upload release packages
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Sep 5, 2024
1 parent e44fbd5 commit f5a722e
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ jobs:
cargo deb -p dragonfly-client --target ${{ matrix.target }} --variant ${{ matrix.target }} --output $dirname.deb
echo "CLIENT_DEB_ASSET=$dirname.deb" >> $GITHUB_ENV
# - name: Build archive client(RPM)
# shell: bash
# run: |
# binary_name="client"
# dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
# cargo generate-rpm -p dragonfly-client --target ${{ matrix.target }} --variant ${{ matrix.target }} --output $dirname.rpm
# echo "CLIENT_RPM_ASSET=$dirname.rpm" >> $GITHUB_ENV
- name: Build archive client(RPM)
shell: bash
run: |
binary_name="client"
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
cargo generate-rpm -p dragonfly-client --target ${{ matrix.target }} --variant ${{ matrix.target }} --output $dirname.rpm
echo "CLIENT_RPM_ASSET=$dirname.rpm" >> $GITHUB_ENV
- name: Build archive client(TAR)
shell: bash
Expand Down Expand Up @@ -125,14 +125,27 @@ jobs:
pattern: release-*
merge-multiple: true

- name: Upload archive client(DEB)
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
releases/*.deb
- name: Upload archive client(RPM)
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
releases/*.rpm
- name: Release
uses: ncipollo/release-action@v1
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
generate_release_notes: true
draft: true
generateReleaseNotes: true
artifacts: "releases/*.rpm,releases/*.deb,releases/*.tar.gz"
files: |
releases/*.tar.gz
publish-crates:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f5a722e

Please sign in to comment.