File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 4343 with :
4444 name : DUCE-windows-package
4545 path : ./dist/
46+
47+ - name : Get Version
48+ if : github.event_name == 'workflow_dispatch'
49+ id : get_version
50+ shell : pwsh
51+ run : |
52+ $version = (Select-String -Path .\base.py -Pattern 'VERSION = "(v.*?)"').Matches.Groups[1].Value
53+ echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
54+ echo "TAG=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
55+
56+ - name : Create Draft Release and Tag
57+ if : github.event_name == 'workflow_dispatch'
58+ uses : softprops/action-gh-release@v2
59+ with :
60+ tag_name : ${{ steps.get_version.outputs.TAG }}
61+ name : ${{ steps.get_version.outputs.TAG }}
62+ body : |
63+ Draft release for version ${{ steps.get_version.outputs.TAG }}
64+ draft : true
65+ prerelease : false
66+ files : |
67+ ./dist/*
You can’t perform that action at this time.
0 commit comments