Skip to content

Update build.yml

Update build.yml #4

Workflow file for this run

name: Build and Release SecVault
on:
push:
branches:
- master
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: Display current directory (for debugging)
run: pwd
- name: List files in current directory (for debugging)
run: ls -la
- name: Grant execution permissions for gradlew
run: chmod +x ./gradlew # Ensure gradlew is executable
- name: Build the app and force the MSI task to run
run: ./gradlew packageMsi --rerun-tasks --info # Force rerun of packageMsi task with info for debugging
- name: List output directories (for debugging)
run: ls -R build/compose/binaries # Verify that MSI files are created in expected directory
- name: Upload .msi artifact
uses: actions/upload-artifact@v3
with:
name: secvault-msi
path: build/compose/binaries/main/msi/*.msi # Ensure this matches the actual path after build
if-no-files-found: warn