@@ -15,48 +15,48 @@ concurrency:
1515 cancel-in-progress : false
1616
1717jobs :
18- build :
19- runs-on : ubuntu-latest
20- steps :
21- - name : Checkout
22- uses : actions/checkout@v3
23- - name : Set up Node.js
24- uses : actions/setup-node@v3
25- with :
26- node-version : ' 20'
27- - name : Install dependencies
28- run : npm install
29- - name : Build React app
30- run : npm run build:react
31- - name : Bundle the app with Webpack
32- run : npm run build:bundle
33- - name : List files in the build directory
34- run : ls -l ./build
35- - name : Upload artifact
36- uses : actions/upload-pages-artifact@v2
37- with :
38- name : github-pages
39- path : ./build
18+ # build:
19+ # runs-on: ubuntu-latest
20+ # steps:
21+ # - name: Checkout
22+ # uses: actions/checkout@v3
23+ # - name: Set up Node.js
24+ # uses: actions/setup-node@v3
25+ # with:
26+ # node-version: '20'
27+ # - name: Install dependencies
28+ # run: npm install
29+ # - name: Build React app
30+ # run: npm run build:react
31+ # - name: Bundle the app with Webpack
32+ # run: npm run build:bundle
33+ # - name: List files in the build directory
34+ # run: ls -l ./build
35+ # - name: Upload artifact
36+ # uses: actions/upload-pages-artifact@v2
37+ # with:
38+ # name: github-pages
39+ # path: ./build
4040
41- deploy :
42- needs : build
43- runs-on : ubuntu-latest
44- steps :
45- - name : Checkout
46- uses : actions/checkout@v3
47- - name : Download artifact
48- uses : actions/download-artifact@v3
49- with :
50- name : github-pages
51- - name : List files after download
52- run : ls -l
53- - name : Deploy to GitHub Pages
54- uses : actions/deploy-pages@v1
55- with :
56- token : ${{ secrets.GITHUB_TOKEN }}
41+ # deploy:
42+ # needs: build
43+ # runs-on: ubuntu-latest
44+ # steps:
45+ # - name: Checkout
46+ # uses: actions/checkout@v3
47+ # - name: Download artifact
48+ # uses: actions/download-artifact@v3
49+ # with:
50+ # name: github-pages
51+ # - name: List files after download
52+ # run: ls -l
53+ # - name: Deploy to GitHub Pages
54+ # uses: actions/deploy-pages@v1
55+ # with:
56+ # token: ${{ secrets.GITHUB_TOKEN }}
5757
5858 build-electron :
59- needs : deploy
59+ # needs: deploy
6060 runs-on : ubuntu-latest
6161 strategy :
6262 matrix :
7777 - name : Build Electron App
7878 run : |
7979 case ${{ matrix.platform }} in
80- win) npm run dist -- --win ;;
80+ win) GH_TOKEN=${{ secrets.GH_TOKEN }} npm run dist -- --win;;
8181 mac) npm run dist -- --mac ;;
8282 linux) npm run dist -- --linux AppImage ;;
8383 esac
0 commit comments