Skip to content

Commit

Permalink
See we if we can publish artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunchurch committed Dec 22, 2023
1 parent 6af4e8b commit dbc4ac1
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/electron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: Build the Electron app
run: npm run make # Replace with your build command

- name: Publish Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # This sets the environment variable for the step
run: npm run publish

# Additional steps for each OS can be added here.
# For example, code signing for macOS or packaging specifics for Windows and Linux.
12 changes: 12 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ const config: ForgeConfig = {
new MakerRpm({}),
new MakerDeb({}),
],
publishers: [
{
name: "@electron-forge/publisher-github",
config: {
repository: {
owner: "shaunchurch",
name: "chatgpt-history-search",
},
authToken: process.env.GH_TOKEN, // Use the secret token
},
},
],
plugins: [
new VitePlugin({
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
Expand Down
204 changes: 200 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@electron-forge/maker-zip": "^7.2.0",
"@electron-forge/plugin-auto-unpack-natives": "^7.2.0",
"@electron-forge/plugin-vite": "^7.2.0",
"@electron-forge/publisher-github": "^7.2.0",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^5.62.0",
Expand Down

0 comments on commit dbc4ac1

Please sign in to comment.