Skip to content

Mattk70 is installing chirpity #671

Mattk70 is installing chirpity

Mattk70 is installing chirpity #671

name: Test Chirpity Compilation
run-name: ${{ github.actor }} is installing chirpity
on: [push, workflow_dispatch]
jobs:
Build-Windows:
runs-on: windows-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.0.x
- run: echo "🍏 Node setup status is ${{ job.status }}."
- name: Install dependencies
run: |
npm install
echo "Install's status is ${{ job.status }}."
- name: Build
run: npx 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 }}."