Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Github Action to perform releases #142

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
# windows-latest, macos-latest

defaults:
run:
working-directory: ./frontend

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Configure Node caching
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Install Node dependencies
run: npm install

- name: Build distribution
env:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
run: npm run dist

- name: Create zip file
if: startsWith(matrix.os, 'ubuntu')
run: |
cd dist
ditto -c -k --keepParent DedupliFHIR*.AppImage DedupliFHIR.app.zip

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: DedupliFHIR-macOS
path: |
dist/DedupliFHIR.app.zip
5 changes: 5 additions & 0 deletions frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ var resultsFile;
function findPython() {
const possibilities = [
// In packaged app
path.join(process.resourcesPath, "python", "bin", "python"),
path.join(process.resourcesPath, "python", "bin", "python3"),
path.join(process.resourcesPath, "python", "bin", "python3.10"),
path.join(process.resourcesPath, "python", "bin", "python3.11"),
path.join(process.resourcesPath, "python", "bin", "python3.12"),

// In development
path.join("..", ".venv", "bin", "python"),
];
Expand Down
Loading