13
13
runs-on : ubuntu-latest
14
14
15
15
steps :
16
- - name : Checkout TheCyberHUB-Desktop code
16
+ - name : Checkout code
17
17
uses : actions/checkout@v2
18
18
19
- - name : Checkout TheCyberHUB gh-pages code
20
- uses : actions/checkout@v2
21
- with :
22
- repository : th3cyb3rhub/TheCyberHUB # Replace with your GitHub username and repo name
23
- ref : gh-pages # Check out the gh-pages branch
24
- path : gh-pages # Place the contents in a 'gh-pages' directory
25
-
26
19
- name : Set up Node.js
27
20
uses : actions/setup-node@v2
28
21
with :
@@ -31,22 +24,25 @@ jobs:
31
24
- name : Clear Electron Builder Cache
32
25
run : rm -rf $HOME/.cache/electron-builder
33
26
34
- - name : Copy thecyberhub build files
35
- run : |
36
- mkdir -p dist # Create the dist directory if it doesn't exist
37
- cp -R gh-pages/* ./ # Copy files from the 'gh-pages' directory to the current working directory
38
-
39
27
- name : Install dependencies
40
28
run : npm install
41
29
42
- - name : Package the app
43
- run : npm run package
30
+ - name : Package the app for Linux, Windows, and macOS
31
+ run : |
32
+ # Build for Linux, Windows, and macOS without publishing
33
+ npx electron-builder --linux AppImage --win nsis --mac dmg -p never
34
+ env :
35
+ GH_TOKEN : ${{ secrets.GH_TOKEN }} # Use your GitHub token with write permissions
44
36
45
37
- name : Upload Release Assets
46
38
uses : ncipollo/release-action@v1
47
39
with :
48
40
tag : ' v${{ github.run_number }}'
41
+ name : ' TheCyberHUB Desktop Release v${{ github.run_number }}'
49
42
files : |
50
- dist/mac/*.dmg # Adjust this to your actual build output
43
+ dist/*.AppImage
44
+ dist/*.exe
45
+ dist/*.dmg
51
46
env :
52
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # test
47
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments