Skip to content

Commit

Permalink
Fix Release creation for .NET Framework and update for Windows Core
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hannebauer committed Jun 28, 2024
1 parent 04eda8b commit 456c5bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
artifacts: scepclient-core-linux-x64.zip
artifacts: scepclient-framework-win-x64.zip
tag: ${{ steps.create_tag.outputs.tag }}
artifactContentType: application/zip
makeLatest: true
32 changes: 7 additions & 25 deletions .github/workflows/release-windows-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,30 +68,12 @@ jobs:
tag=$(date +"%Y%m%d-%H%M-windows-core")
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
- name: Create Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.create_tag.outputs.tag }}
release_name: ${{ steps.create_tag.outputs.tag }}
draft: true
prerelease: false

- name: Upload Artifacts to Release
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./scepclient-core-win-x64.zip
asset_name: scepclient-core-win-x64.zip
asset_content_type: application/zip

- name: Publish Release
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
artifacts: scepclient-core-win-x64.zip
tag: ${{ steps.create_tag.outputs.tag }}
artifactContentType: application/zip
makeLatest: true

0 comments on commit 456c5bf

Please sign in to comment.