Skip to content

Commit

Permalink
chore: ..
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanlakhani committed Oct 11, 2023
1 parent 50cd01f commit ae48cc7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,30 +136,25 @@ jobs:
- name: Create .deb
run: cargo deb -p homestar-runtime --target ${{ env.LINUX_TARGET }}

- name: Compile
run: |
cargo build -p homestar-runtime --locked --release --target ${{ env.LINUX_TARGET }}
strip -s target/release/homestar
- name: Create .rpm
run: cargo generate-rpm -p homestar
run: cargo generate-rpm --target ${{ env.LINUX_TARGET }}

- name: Upload Release Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: |
target/generate-rpm/
target/${{env.LINUX_TARGET}}/debian/
target/${{ env.LINUX_TARGET }}/generate-rpm/
target/${{ env.LINUX_TARGET }}/debian/
if-no-files-found: error

- name: Publish Package in Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'release' && github.event.action == 'published'
with:
files: |
target/${{env.LINUX_TARGET}}/debian/*.deb
target/generate-rpm/*.rpm
target/${{ env.LINUX_TARGET }}/debian/*.deb
target/${{ env.LINUX_TARGET }}/generate-rpm/*.rpm
docker-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ae48cc7

Please sign in to comment.