Skip to content

Commit

Permalink
Create blank.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shade-sdev authored Oct 3, 2024
1 parent e8a141d commit 3f94655
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/blank.yml
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 }}

0 comments on commit 3f94655

Please sign in to comment.