Create Release
This commit is contained in:
@@ -40,9 +40,20 @@ jobs:
|
|||||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||||
run: npx electron-builder --win portable --config electron-builder.yml
|
run: npx electron-builder --win portable --config electron-builder.yml
|
||||||
|
|
||||||
- name: Upload Windows portable artifact
|
- name: Get version from package.json
|
||||||
uses: actions/upload-artifact@v3
|
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:
|
with:
|
||||||
name: rmtPocketWatcher-Windows-Portable
|
tag_name: v${{ steps.version.outputs.VERSION }}
|
||||||
path: electron-app/release/rmtPocketWatcher-*.exe
|
name: rmtPocketWatcher v${{ steps.version.outputs.VERSION }}
|
||||||
retention-days: 7
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
files: electron-app/release/rmtPocketWatcher-*.exe
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user