Skip to content

Commit

Permalink
releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheridan committed Jul 25, 2024
1 parent e5663dd commit e03d814
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,21 @@ jobs:
libjsoncpp-dev \
dpkg-dev \
debhelper
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
cpack -G DEB
mkdir .build
make release
"
- name: Upload Debian package
id: upload_package
uses: actions/upload-artifact@v2
with:
name: homed_exporter_${{ github.event.release.tag_name }}_${{ matrix.arch }}.deb
path: build/homed_exporter_${{ github.event.release.tag_name }}_${{ matrix.arch }}.deb
# - name: Upload Debian package
# id: upload_package
# uses: actions/upload-artifact@v2
# with:
# name: homed_exporter_${{ github.event.release.tag_name }}_${{ matrix.arch }}.deb
# path: .build/release/homed_exporter_${{ github.event.release.tag_name }}_${{ matrix.arch }}.deb

- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.release.tag_name }}
files: build/*.deb
files: .build/release/*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e03d814

Please sign in to comment.