Skip to content

Commit

Permalink
Update and rename blank.yml to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shade-sdev authored Oct 3, 2024
1 parent 3f94655 commit 88ea183
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/blank.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and Release SecVault

on:
push:
tags:
- 'v*.*.*' # Trigger workflow on version tag pushes (e.g., v1.0.0)
branches:
- master # Trigger on pushes to the master branch

jobs:
build:
Expand Down Expand Up @@ -38,9 +38,17 @@ jobs:
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
- name: Delete existing release
run: |
existing_release=$(gh release view 1.0.0 --json url --jq .url || echo "none")
if [ "$existing_release" != "none" ]; then
gh release delete 1.0.0 --yes
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create new release
run: |
gh release create 1.0.0 build/compose/binaries/main/msi/*.msi --title "SecVault v1.0.0" --notes "Updated release from master branch"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 88ea183

Please sign in to comment.