Skip to content

Commit 5efb570

Browse files
committed
Add GitHub workflow files
1 parent c8df20e commit 5efb570

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

.github/workflows/electron.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build/release frontend
2+
3+
on:
4+
push:
5+
tags:
6+
- v*.*.*
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os: [ macos-latest, ubuntu-latest, windows-latest]
16+
17+
steps:
18+
- name: Check out Git repository
19+
uses: actions/checkout@v4
20+
21+
- name: Install Node.js and NPM
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: 'npm'
26+
27+
- name: Install Dependencies
28+
run: npm install
29+
30+
- name: Build for Linux
31+
if: matrix.os == 'ubuntu-latest'
32+
run: npm run build:linux
33+
34+
- name: Build for Mac
35+
if: matrix.os == 'macos-latest'
36+
run: npm run build:mac
37+
38+
- name: Build for Windows
39+
if: matrix.os == 'windows-latest'
40+
run: npm run build:win
41+
42+
- name: Release
43+
uses: softprops/action-gh-release@v2
44+
with:
45+
draft: true
46+
files: |
47+
dist/*.exe
48+
dist/*.zip
49+
dist/*.dmg
50+
dist/*.AppImage
51+
dist/*.snap
52+
dist/*.deb
53+
dist/*.rpm
54+
dist/*.tar.gz
55+
dist/*.yml
56+
dist/*.blockmap
57+
58+
defaults:
59+
run:
60+
working-directory: ./frontend

.github/workflows/fly.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy backend on Fly
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
name: Deploy app
12+
runs-on: ubuntu-latest
13+
concurrency: deploy-group # optional: ensure only one action runs at a time
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: superfly/flyctl-actions/setup-flyctl@master
17+
- run: flyctl deploy --remote-only
18+
env:
19+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
20+
21+
defaults:
22+
run:
23+
working-directory: ./backend
24+

0 commit comments

Comments
 (0)