Skip to content

Commit

Permalink
[GHActions] Use upload-release-action to add tag name to assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Guillou committed Nov 20, 2020
1 parent c4a2ed2 commit 7a584fa
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,41 +467,33 @@ jobs:
uses: actions/download-artifact@v2

- name: Upload Ubuntu Bionic .deb as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk-ubuntu-18.04.deb/ttk-ubuntu-18.04.deb
asset_name: ttk-ubuntu-18.04.deb
asset_content_type: application/vnd.debian.binary-package
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-ubuntu-18.04.deb/ttk-ubuntu-18.04.deb
asset_name: ttk-$tag-ubuntu-18.04.deb

- name: Upload Ubuntu Focal .deb as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk-ubuntu-20.04.deb/ttk-ubuntu-20.04.deb
asset_name: ttk-ubuntu-20.04.deb
asset_content_type: application/vnd.debian.binary-package
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk-ubuntu-20.04.deb/ttk-ubuntu-20.04.deb
asset_name: ttk-$tag-ubuntu-20.04.deb

- name: Upload macOS .pkg as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk.pkg/ttk.pkg
asset_name: ttk.pkg
asset_content_type: application/x-newton-compatible-pkg
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk.pkg/ttk.pkg
asset_name: ttk-$tag.pkg

- name: Upload Windows .exe as Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ttk.exe/ttk.exe
asset_name: ttk.exe
asset_content_type: application/vnd.microsoft.portable-executable
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ttk.exe/ttk.exe
asset_name: ttk-$tag.exe

0 comments on commit 7a584fa

Please sign in to comment.