Skip to content

Commit

Permalink
Merge branch 'master' into ubuntu2404
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed Aug 3, 2024
2 parents cf9669d + 24c01c6 commit e331f39
Showing 1 changed file with 27 additions and 19 deletions.
46 changes: 27 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,31 @@ jobs:

- name: Inspect the deb
run: dpkg -I deb_dist/grub-reboot-picker_$version-1_all.deb
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create a Release
id: create-release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: deb_dist/grub-reboot-picker_${{ steps.version_setter.outputs.version }}-1_all.deb
asset_name: grub-reboot-picker.deb
asset_content_type: application/vnd.debian.binary-package
make_latest: true
files: |
deb_dist/grub-reboot-picker_${{ steps.version_setter.outputs.version }}-1_all.deb
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# asset_path: deb_dist/grub-reboot-picker_${{ steps.version_setter.outputs.version }}-1_all.deb
# asset_name: grub-reboot-picker.deb
# asset_content_type: application/vnd.debian.binary-package

0 comments on commit e331f39

Please sign in to comment.