Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

final workflow test check #10

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 8 additions & 29 deletions .github/workflows/create-release-with-asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,33 +91,6 @@ jobs:
script: |
core.setFailed('user-installer build failed, no sense continuing...')

# zip the build output
- name: zip build artifact
id: zip-build-artifact
run: |
7z a -tzip ${{ github.workspace }}\Build_Release.zip ${{ github.workspace }}\Solution\TrangTestStub\bin\Release\*

# send build output to github output
- name: Upload Build Artifact
id: upload-build-artifact
uses: actions/upload-artifact@v4
with:
name: build-executable-artifact
path: ${{ github.workspace }}\Build_Release.zip
retention-days: 5

# upload build output to release
- name: Upload Release Asset
id: upload-release-asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.create-release.outputs.release-asset-upload-url }}
asset_path: ${{ github.workspace }}\Build_Release.zip
asset_name: Build_Release.zip
asset_content_type: application/zip

# send build output to github output
- name: Upload Build Artifact
id: upload-build-artifact-2
Expand All @@ -127,14 +100,20 @@ jobs:
path: ${{ github.workspace }}\Solution\TrangTestStub\bin\Release\*
retention-days: 5

# zip the build output
- name: zip build artifact
id: zip-build-artifact
run: |
7z a -tzip ${{ github.workspace }}\Build_Release.zip ${{ github.workspace }}\Solution\TrangTestStub\bin\Release\*

# upload build output to release
- name: Upload Release Asset
id: upload-release-asset-2
id: upload-release-asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.create-release.outputs.release-asset-upload-url }}
asset_path: ${{ steps.upload-build-artifact-2.outputs.artifact-url }}
asset_path: ${{ github.workspace }}\Build_Release.zip
asset_name: Build_Release.zip
asset_content_type: application/zip
Loading