Create Release
This commit is contained in:
@@ -40,9 +40,20 @@ jobs:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||
run: npx electron-builder --win portable --config electron-builder.yml
|
||||
|
||||
- name: Upload Windows portable artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
- name: Get version from package.json
|
||||
id: version
|
||||
working-directory: electron-app
|
||||
run: |
|
||||
$version = (Get-Content package.json | ConvertFrom-Json).version
|
||||
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: Create Release and Upload exe
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: rmtPocketWatcher-Windows-Portable
|
||||
path: electron-app/release/rmtPocketWatcher-*.exe
|
||||
retention-days: 7
|
||||
tag_name: v${{ steps.version.outputs.VERSION }}
|
||||
name: rmtPocketWatcher v${{ steps.version.outputs.VERSION }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
files: electron-app/release/rmtPocketWatcher-*.exe
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user