Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
altmannmarcelo committed Mar 22, 2024
1 parent 5dd179d commit 399666c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,33 @@ jobs:

- name: Install cargo-generate-rpm
run: cargo install cargo-generate-rpm

- name: Install cargo-deb
run: cargo install cargo-deb

- name: Build
run: cargo build --release

- name: Generate RPM
run: cargo generate-rpm

- name: Save RPM name
- name: Generate DEB
run: cargo deb

- name: Save RPM / DEB name
run: |
echo "rpm_name=$(ls target/generate-rpm/)" >> "$GITHUB_ENV"
echo "deb_name=$(ls target/debian/)" >> "$GITHUB_ENV"
- name: Upload
- name: Upload RPM
uses: actions/upload-artifact@v4
with:
path: target/generate-rpm/
name: ${{ env.rpm_name }}

- name: Upload Deb
uses: actions/upload-artifact@v4
with:
path: target/debian/
name: ${{ env.deb_name }}

0 comments on commit 399666c

Please sign in to comment.