Skip to content

Commit

Permalink
Update check-installation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 authored Nov 13, 2024
1 parent f50568a commit 357c06c
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/check-installation.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Chirpity Compilation
run-name: ${{ github.actor }} is installing chirpity
on: [push]
on: [push, workflow_dispatch]
jobs:
Explore-GitHub-Actions:
Build-Windows:
runs-on: windows-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
Expand All @@ -18,7 +18,23 @@ jobs:
with:
node-version: 20.0.x
- run: echo "🍏 Node setup status is ${{ job.status }}."
- name: Install
run: npm install
- run: echo "Install's status is ${{ job.status }}."
- name: Install dependencies
run: |
npm install
echo "Install's status is ${{ job.status }}."
- name: Build
run: electron-builder --win --x64
- name: Check installer exists
run: |
# Retrieve the version from package.json
VERSION=$(jq -r '.version' package.json)
# Construct the filename
FILENAME="chirpity Setup-$VERSION.exe"
# Check if the file exists
if [ -f "./dist/$FILENAME" ]; then
echo "Executable $FILENAME found in ./dist"
else
echo "Executable $FILENAME not found in ./dist" && exit 1
fi
- run: echo "File check status is ${{ job.status }}."

0 comments on commit 357c06c

Please sign in to comment.