-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,32 @@ jobs: | |
qmake | ||
make | ||
macdeployqt ../bin/DIP.app -verbose=1 -dmg | ||
- name: Load Release URL File from release job | ||
if: startsWith(github.event.ref, 'refs/tags/') | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: release_url | ||
- name: Get Release File Name & Upload URL | ||
if: startsWith(github.event.ref, 'refs/tags/') | ||
id: get_release_info | ||
shell: bash | ||
run: | | ||
echo ::set-output name=file_name::DIP-macos-${TAG_REF_NAME##*/v} | ||
value=`cat release_url/release_url.txt` | ||
echo ::set-output name=upload_url::$value | ||
env: | ||
TAG_REF_NAME: ${{ github.ref }} | ||
- name: Upload Release Asset | ||
if: startsWith(github.event.ref, 'refs/tags/') | ||
id: upload-release-asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release_info.outputs.upload_url }} | ||
asset_path: ./bin/DIP.dmg | ||
asset_name: ${{ steps.get_release_info.outputs.file_name }}.dmg | ||
asset_content_type: application/applefile | ||
ubuntu: | ||
name: Build on Ubuntu | ||
needs: try_create_release | ||
|