Update CI to Release on push
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -202,6 +202,7 @@ jobs:
|
|||||||
body="${body//$'\n'/'%0A'}"
|
body="${body//$'\n'/'%0A'}"
|
||||||
body="${body//$'\r'/'%0D'}"
|
body="${body//$'\r'/'%0D'}"
|
||||||
echo "::set-output name=body::$body"
|
echo "::set-output name=body::$body"
|
||||||
|
if: contains(github.event, 'push')
|
||||||
# create a pre/release
|
# create a pre/release
|
||||||
- name: Create a Pre/Release
|
- name: Create a Pre/Release
|
||||||
id: create_release
|
id: create_release
|
||||||
@@ -214,7 +215,7 @@ jobs:
|
|||||||
body: ${{ steps.release_notes.outputs.body }}
|
body: ${{ steps.release_notes.outputs.body }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
if: contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease')
|
if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
|
||||||
# upload linux archive asset
|
# upload linux archive asset
|
||||||
- name: Upload Linux Archive Asset
|
- name: Upload Linux Archive Asset
|
||||||
id: upload-linux-asset
|
id: upload-linux-asset
|
||||||
@@ -226,7 +227,7 @@ jobs:
|
|||||||
asset_path: ../deploy/linux/ALttPDoorRandomizer.tar.gz
|
asset_path: ../deploy/linux/ALttPDoorRandomizer.tar.gz
|
||||||
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-linux-bionic.tar.gz
|
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-linux-bionic.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
if: contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease')
|
if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
|
||||||
# upload macos archive asset
|
# upload macos archive asset
|
||||||
- name: Upload MacOS Archive Asset
|
- name: Upload MacOS Archive Asset
|
||||||
id: upload-macos-asset
|
id: upload-macos-asset
|
||||||
@@ -238,7 +239,7 @@ jobs:
|
|||||||
asset_path: ../deploy/macos/ALttPDoorRandomizer.tar.gz
|
asset_path: ../deploy/macos/ALttPDoorRandomizer.tar.gz
|
||||||
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-osx.tar.gz
|
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-osx.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
if: contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease')
|
if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
|
||||||
# upload windows archive asset
|
# upload windows archive asset
|
||||||
- name: Upload Windows Archive Asset
|
- name: Upload Windows Archive Asset
|
||||||
id: upload-windows-asset
|
id: upload-windows-asset
|
||||||
@@ -250,4 +251,4 @@ jobs:
|
|||||||
asset_path: ../deploy/windows/ALttPDoorRandomizer.zip
|
asset_path: ../deploy/windows/ALttPDoorRandomizer.zip
|
||||||
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-windows.zip
|
asset_name: ALttPDoorRandomizer-${{ steps.debug_info.outputs.github_tag }}-windows.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
if: contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease')
|
if: contains(github.event, 'push') && (contains(github.ref, 'master') || (contains(github.ref, 'stable') && !contains(github.ref, 'unstable')) || contains(github.ref, 'dev') || contains(github.ref, 'DoorRelease'))
|
||||||
|
|||||||
Reference in New Issue
Block a user