|
1 | 1 | on: |
2 | 2 | push: |
| 3 | + branches: '**' |
| 4 | + tags-ignore: '**' |
3 | 5 | pull_request: |
4 | 6 | release: |
5 | 7 | types: [published] |
@@ -99,28 +101,30 @@ jobs: |
99 | 101 | runs-on: ubuntu-latest |
100 | 102 | needs: [linux-x86_64, windows-mingw32, macos] |
101 | 103 | steps: |
| 104 | + - uses: actions/checkout@v2 |
| 105 | + - run: echo VERSION=$(./.github/workflows/version.py) > $GITHUB_ENV |
102 | 106 | - uses: actions/download-artifact@v2 |
103 | 107 | - uses: actions/upload-release-asset@v1 |
104 | 108 | env: |
105 | 109 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
106 | 110 | with: |
107 | 111 | upload_url: ${{ github.event.release.upload_url }} |
108 | 112 | asset_path: keyboard-configurator-linux-x86_64-${{ github.sha }}/keyboard-configurator-x86_64.AppImage |
109 | | - asset_name: keyboard-configurator-x86_64.AppImage |
| 113 | + asset_name: keyboard-configurator-${{ env.VERSION }}-x86_64.AppImage |
110 | 114 | asset_content_type: application/vnd.appimage |
111 | 115 | - uses: actions/upload-release-asset@v1 |
112 | 116 | env: |
113 | 117 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
114 | 118 | with: |
115 | 119 | upload_url: ${{ github.event.release.upload_url }} |
116 | 120 | asset_path: keyboard-configurator-mingw32-${{ github.sha }}/keyboard-configurator.msi |
117 | | - asset_name: keyboard-configurator.msi |
| 121 | + asset_name: keyboard-configurator-${{ env.VERSION }}.msi |
118 | 122 | asset_content_type: application/x-msi |
119 | 123 | - uses: actions/upload-release-asset@v1 |
120 | 124 | env: |
121 | 125 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
122 | 126 | with: |
123 | 127 | upload_url: ${{ github.event.release.upload_url }} |
124 | 128 | asset_path: keyboard-configurator-macos-${{ github.sha }}/keyboard-configurator.dmg |
125 | | - asset_name: keyboard-configurator.dmg |
| 129 | + asset_name: keyboard-configurator-${{ env.VERSION }}.dmg |
126 | 130 | asset_content_type: application/x-apple-diskimage |
0 commit comments