Skip to content

Commit

Permalink
Added Github Action to perform releases
Browse files Browse the repository at this point in the history
Signed-off-by: Natalia Luzuriaga <natalia.luzuriaga@cms.hhs.gov>
  • Loading branch information
natalialuzuriaga committed Sep 10, 2024
1 parent b93f8fc commit 403e169
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
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"),

Check warning on line 23 in frontend/main.js

View workflow job for this annotation

GitHub Actions / frontend-checks

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

0 comments on commit 403e169

Please sign in to comment.