-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8a141d
commit 3f94655
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and Release SecVault | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' # Trigger workflow on version tag pushes (e.g., v1.0.0) | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Build the app | ||
run: ./gradlew packageMsi # Build for Windows .msi (for exe) | ||
|
||
- name: Upload .msi artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: secvault-msi | ||
path: build/compose/binaries/main/msi/*.msi # Path to the .msi file | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download build artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: secvault-msi | ||
|
||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/compose/binaries/main/msi/*.msi # Path to the .msi file | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |