mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-23 23:21:08 +01:00
Modifications to build process according to PR #400
This commit is contained in:
parent
84df5573d8
commit
ff326d66b5
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
@ -125,7 +125,7 @@ jobs:
|
||||
working-directory: build/Release
|
||||
run: |
|
||||
ep_setup_patch.exe
|
||||
exit 0
|
||||
exit /b 0
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
@ -154,26 +154,50 @@ jobs:
|
||||
echo "::set-output name=data::$MY_STRING"
|
||||
id: release_description
|
||||
|
||||
- name: Create/update release
|
||||
- name: Create/update release (valinet)
|
||||
uses: actions/create-release@v1
|
||||
if: github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
|
||||
if: github.repository_owner == 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
|
||||
id: create_release
|
||||
with:
|
||||
draft: false
|
||||
prerelease: false
|
||||
prerelease: ${{ !startsWith(github.event.head_commit.message, 'rel_') }}
|
||||
release_name: ${{ steps.release_name.outputs.data }}
|
||||
tag_name: ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }}
|
||||
body: ${{ steps.release_description.outputs.data }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||
|
||||
- name: Upload setup
|
||||
- name: Upload setup (valinet)
|
||||
uses: actions/upload-release-asset@v1
|
||||
if: github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||
if: github.repository_owner == 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./build/Release/ep_setup.exe
|
||||
asset_name: ep_setup.exe
|
||||
asset_content_type: application/x-msdownload
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT }}
|
||||
|
||||
- name: Create/update release (forks)
|
||||
uses: actions/create-release@v1
|
||||
if: github.repository_owner != 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
|
||||
id: create_release_fork
|
||||
with:
|
||||
draft: false
|
||||
prerelease: ${{ !startsWith(github.event.head_commit.message, 'rel_') }}
|
||||
release_name: ${{ steps.release_name.outputs.data }}
|
||||
tag_name: ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }}
|
||||
body: ${{ steps.release_description.outputs.data }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload setup (forks)
|
||||
uses: actions/upload-release-asset@v1
|
||||
if: github.repository_owner != 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
|
||||
with:
|
||||
upload_url: ${{ steps.create_release_fork.outputs.upload_url }}
|
||||
asset_path: ./build/Release/ep_setup.exe
|
||||
asset_name: ep_setup.exe
|
||||
asset_content_type: application/x-msdownload
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user