Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
beniroquai committed May 1, 2024
2 parents c043684 + 650477b commit 6a03dd5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 23 deletions.
66 changes: 46 additions & 20 deletions .github/workflows/build_electron_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,55 @@ on:
- main

jobs:
version-bump:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
uses: phips28/gh-action-bump-version@master
with:
github-token: ${{ secrets.GH_TOKEN }}
tag-prefix: ''
minor: true

build:
runs-on: ${{ matrix.os }}
needs: version-bump
runs-on: windows-latest
strategy:
matrix:
os: [windows-latest, macos-latest]
node-version: [18.x]

steps:
- uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run dist --publish=never
- uses: actions/upload-artifact@v2
with:
name: windows-exe-artifact
path: dist/*.exe

- name: Install dependencies
run: npm install

- name: Build and Package
run: npm run dist --publish=never

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-artifacts
path: dist/*
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: windows-exe-artifact
path: dist
- run: git fetch --tags
- run: echo "RELEASE_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.exe
tag_name: ${{ env.RELEASE_TAG }}
token: ${{ secrets.GH_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ImSwitch",
"description": "An acquisition and control software for microscopy",
"version": "1.2.9",
"version": "1.2.13",
"main": "main.js",
"repository": "openUC2/imswitchinstaller",
"author": "Bene <[email protected]>",
Expand Down

0 comments on commit 6a03dd5

Please sign in to comment.