|
|
|
@ -125,7 +125,7 @@ jobs: |
|
|
|
working-directory: build/Release |
|
|
|
working-directory: build/Release |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
ep_setup_patch.exe |
|
|
|
ep_setup_patch.exe |
|
|
|
exit 0 |
|
|
|
exit /b 0 |
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts |
|
|
|
- name: Upload artifacts |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
@ -154,26 +154,50 @@ jobs: |
|
|
|
echo "::set-output name=data::$MY_STRING" |
|
|
|
echo "::set-output name=data::$MY_STRING" |
|
|
|
id: release_description |
|
|
|
id: release_description |
|
|
|
|
|
|
|
|
|
|
|
- name: Create/update release |
|
|
|
- name: Create/update release (valinet) |
|
|
|
uses: actions/create-release@v1 |
|
|
|
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 |
|
|
|
id: create_release |
|
|
|
with: |
|
|
|
with: |
|
|
|
draft: false |
|
|
|
draft: false |
|
|
|
prerelease: false |
|
|
|
prerelease: ${{ startsWith(github.event.head_commit.message, 'rel_') }} |
|
|
|
release_name: ${{ steps.release_name.outputs.data }} |
|
|
|
release_name: ${{ steps.release_name.outputs.data }} |
|
|
|
tag_name: ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }} |
|
|
|
tag_name: ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }} |
|
|
|
body: ${{ steps.release_description.outputs.data }} |
|
|
|
body: ${{ steps.release_description.outputs.data }} |
|
|
|
env: |
|
|
|
env: |
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }} |
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Upload setup |
|
|
|
- name: Upload setup (valinet) |
|
|
|
uses: actions/upload-release-asset@v1 |
|
|
|
uses: actions/upload-release-asset@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 == '' |
|
|
|
|
|
|
|
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: |
|
|
|
env: |
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }} |
|
|
|
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: |
|
|
|
with: |
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }} |
|
|
|
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_path: ./build/Release/ep_setup.exe |
|
|
|
asset_name: ep_setup.exe |
|
|
|
asset_name: ep_setup.exe |
|
|
|
asset_content_type: application/x-msdownload |
|
|
|
asset_content_type: application/x-msdownload |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|