File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 7171 if-no-files-found : warn
7272 retention-days : 30
7373
74+ build-sponsored :
75+ name : Build Sponsored for ${{ matrix.os }}
76+ runs-on : ${{ matrix.os }}
77+ strategy :
78+ matrix :
79+ include :
80+ - os : macos-latest
81+ platform : mac
82+ arch : x64,arm64
83+ - os : windows-latest
84+ platform : win
85+ arch : x64
86+ - os : ubuntu-latest
87+ platform : linux
88+ arch : x64
89+
90+ steps :
91+ - name : Checkout code
92+ uses : actions/checkout@v4
93+ with :
94+ fetch-depth : 0
95+
96+ - name : Setup pnpm
97+ uses : pnpm/action-setup@v4
98+ with :
99+ version : latest
100+
101+ - name : Setup Node.js
102+ uses : actions/setup-node@v4
103+ with :
104+ node-version : 20.16.0 # Project's Node version
105+ cache : pnpm
106+
107+ - name : Install dependencies
108+ run : pnpm install
109+
110+ - name : Rebuild native dependencies
111+ run : pnpm run rebuild
112+
113+ - name : Build application
114+ run : vite build && npm run build:main && electron-builder --config electron-builder.sponsored.json --${{ matrix.platform }} ${{ matrix.arch }}
115+ env :
116+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117+ TAG : ${{ github.ref_name || inputs.tag }}
118+ VITE_SPONSORED : true
119+
120+ - name : Upload artifacts
121+ uses : actions/upload-artifact@v4
122+ with :
123+ name : sponsored-${{ matrix.platform }}-${{ env.TAG }}
124+ path : |
125+ dist/*.dmg
126+ dist/*.pkg
127+ dist/*.exe
128+ dist/*.msi
129+ dist/*.AppImage
130+ dist/*.snap
131+ if-no-files-found : warn
132+ retention-days : 30
133+
74134 release :
75135 name : Create Release
76136 needs : build
You can’t perform that action at this time.
0 commit comments