Skip to content

Commit

Permalink
draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
rstm-sf committed Apr 15, 2021
1 parent 42456e1 commit 8bec99f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dotnet_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,32 @@ jobs:
path: |
./src/AvaloniaProjectInfoResolver/bin/${{ env.configuration }}/*.nupkg
./src/AvaloniaProjectInfoResolver/bin/${{ env.configuration }}/*.snupkg
release:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: [build]
steps:

- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: ${{ env.zip-name }}

- name: Variables
id: vars
shell: pwsh
run: |
$fileName = Split-Path -Path "*.nupkg" -LeafBase -Resolve
Write-Output "::set-output name=version::$($filename.Substring("AvaloniaProjectInfoResolver.".Length))"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
*.nupkg
*.snupkg
tag_name: v${{ steps.vars.outputs.version }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8bec99f

Please sign in to comment.