ci: Create release on tag

This commit is contained in:
Matt Borgerson 2020-06-19 05:21:15 -07:00
parent 3aa9c3ad13
commit 9d75e3cc60
1 changed files with 2 additions and 6 deletions

View File

@ -190,6 +190,7 @@ jobs:
path: ${{env.ARTIFACT_NAME}}
Release:
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/xemu-v'))
runs-on: ubuntu-latest
needs: [Ubuntu, Windows, macOS]
env:
@ -203,7 +204,6 @@ jobs:
run: |
echo "::set-env name=BUILD_TAG::$(cat dist/tag)"
- name: Create Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: create_release
uses: actions/create-release@v1
env:
@ -214,7 +214,6 @@ jobs:
draft: false
prerelease: false
- name: Upload Release Assets (Windows Debug Build)
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: upload-release-asset-win-debug
uses: actions/upload-release-asset@v1.0.1
env:
@ -225,7 +224,6 @@ jobs:
asset_path: dist/xemu-win-debug.zip
asset_content_type: application/zip
- name: Upload Release Assets (Windows Release Build)
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: upload-release-asset-win-release
uses: actions/upload-release-asset@v1.0.1
env:
@ -236,7 +234,6 @@ jobs:
asset_path: dist/xemu-win-release.zip
asset_content_type: application/zip
- name: Upload Release Assets (macOS Release Build)
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: upload-release-asset-macos-release
uses: actions/upload-release-asset@v1.0.1
env:
@ -247,7 +244,6 @@ jobs:
asset_path: dist/xemu-macos-release.zip
asset_content_type: application/zip
- name: Upload Release Assets (macOS Debug Build)
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: upload-release-asset-macos-debug
uses: actions/upload-release-asset@v1.0.1
env:
@ -263,7 +259,7 @@ jobs:
# namely: no network egress on package build, no custom scripting in source
# package creation.
PushToPPA:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/xemu-v'))
needs: [Ubuntu, Windows, macOS]
runs-on: ubuntu-latest
steps: