Skip to content

Commit

Permalink
Update release workflow to create a draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Sep 1, 2022
1 parent dfb0f88 commit 9f20b8d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,25 @@ jobs:
ref: "refs/tags/${{ env.VERSION }}",
sha: context.sha
})
- name: Create release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: v${{ env.VERSION }}
draft: true
prerelease: false
- uses: actions/download-artifact@v3
with:
path: artifacts
- name: Upload VSIX asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: artifacts/Visual Studio Extension/ResWFileCodeGenerator-${{ env.VERSION }}.vsix
asset_name: ResWFileCodeGenerator-${{ env.VERSION }}.vsix
asset_content_type: application/zip

0 comments on commit 9f20b8d

Please sign in to comment.