Skip to content

Commit

Permalink
尝试自动发布到MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
miRoox committed Dec 8, 2019
1 parent 9d26435 commit 1eb0e2d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1eb0e2d

Please sign in to comment.