-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,8 @@ jobs: | |
if: ( github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'master' ) || startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' | ||
strategy: | ||
matrix: | ||
# runtime: [x64, x86] | ||
runtime: [x64] | ||
runtime: [x64, x86] | ||
# runtime: [x64] | ||
|
||
runs-on: windows-latest # For a list of available runner types, refer to | ||
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | ||
|
@@ -99,6 +99,12 @@ jobs: | |
name: build-x64 | ||
path: ./artifacts | ||
|
||
- name: Download x86 artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build-x86 | ||
path: ./artifacts | ||
|
||
# Get version number | ||
- name: get-net-sdk-project-versions-action | ||
uses: kzrnm/[email protected] | ||
|
@@ -200,9 +206,9 @@ jobs: | |
prerelease: ${{ env.IS_RELEASE == 'false' }} | ||
|
||
# Upload Artifacts | ||
- name: Upload Release Asset | ||
- name: Upload x64 Release Asset | ||
if: env.IS_RELEASE == 'true' | ||
id: upload-release-asset | ||
id: upload-release-asset_x64 | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -211,6 +217,19 @@ jobs: | |
asset_path: ./artifacts/${{ env.ZIP_NAME}}x64.zip | ||
asset_name: ${{ env.ZIP_NAME}}x64.zip | ||
asset_content_type: application/zip | ||
|
||
# Upload Artifacts | ||
- name: Upload x86 Release Asset | ||
if: env.IS_RELEASE == 'true' | ||
id: upload-release-asset_x86 | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./artifacts/${{ env.ZIP_NAME}}x86.zip | ||
asset_name: ${{ env.ZIP_NAME}}x86.zip | ||
asset_content_type: application/zip | ||
|
||
# Create Nightly Release | ||
- name: Create Nightly Release | ||
|
@@ -227,4 +246,6 @@ jobs: | |
${{ steps.get-changes.outputs.changes }} | ||
--- | ||
prerelease: true | ||
files: ./artifacts/${{ env.ZIP_NAME}}x64.zip | ||
files: | | ||
./artifacts/${{ env.ZIP_NAME}}x64.zip | ||
./artifacts/${{ env.ZIP_NAME}}x86.zip |