Skip to content

Commit

Permalink
rename secret
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Oct 24, 2023
1 parent 060de66 commit afb33b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
BLOOM_APPLE_ID: ${{ secrets.APPLE_ID }} # Requires prefix of BLOOM otherwise electron builder tries to notarize the app using the env variables
BLOOM_APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} # Requires prefix of BLOOM otherwise electron builder tries to notarize the app using the env variables
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PRIVATE_REPO_ACCESS_TOKEN: ${{ secrets.GH_PRIVATE_REPO_ACCESS_TOKEN }}
PRIVATE_REPO_ACCESS_TOKEN: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}
MACOS_SKIP_NOTARIZATION: false
working-directory: packages/desktop
if: ${{ inputs.sign && inputs.os == 'macos-11' }}
Expand All @@ -123,7 +123,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MACOS_SKIP_NOTARIZATION: true
GH_PRIVATE_REPO_ACCESS_TOKEN: ${{ secrets.GH_PRIVATE_REPO_ACCESS_TOKEN }}
PRIVATE_REPO_ACCESS_TOKEN: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}
working-directory: packages/desktop
if: ${{ ! inputs.sign && inputs.os == 'macos-11' }}

Expand All @@ -133,7 +133,7 @@ jobs:
CSC_LINK: ${{ secrets.WIN_CERT_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASSWORD }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PRIVATE_REPO_ACCESS_TOKEN: ${{ secrets.GH_PRIVATE_REPO_ACCESS_TOKEN }}
PRIVATE_REPO_ACCESS_TOKEN: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}
working-directory: packages/desktop
if: ${{ inputs.sign && inputs.os == 'windows-2019' }}

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/reusable_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ jobs:
asset_path: assets/latest-linux.yml
asset_name: latest-linux.yml
asset_content_type: application/octet-stream
# if: inputs.stage == 'prod'

- name: Upload Windows updater yml
uses: actions/upload-release-asset@v1
Expand All @@ -128,7 +127,6 @@ jobs:
asset_path: assets/latest.yml
asset_name: latest.yml
asset_content_type: application/octet-stream
# if: inputs.stage == 'prod'

- name: Upload MacOs updater yml
uses: actions/upload-release-asset@v1
Expand All @@ -139,7 +137,6 @@ jobs:
asset_path: assets/latest-mac.yml
asset_name: latest-mac.yml
asset_content_type: application/octet-stream
# if: inputs.stage == 'prod'

- name: Upload Linux code signature asset
uses: actions/upload-release-asset@v1
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/electron-builder-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const prodConfig: Configuration = {
vPrefixedTagName: false,
// Following lines are required as long as we're closed source
private: true,
token: JSON.stringify(process.env.GH_PRIVATE_REPO_ACCESS_TOKEN),
token: JSON.stringify(process.env.PRIVATE_REPO_ACCESS_TOKEN),
channel: CHANNEL_NAME,
},
}
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/lib/electron/processes/main.process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function createMainWindow(): BrowserWindow {
},
})

console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', process.env.GH_PRIVATE_REPO_ACCESS_TOKEN)
console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', process.env.PRIVATE_REPO_ACCESS_TOKEN)

if (mainWindowState.isMaximized) {
windows.main.maximize()
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const rendererPlugins = [
}),
new DefinePlugin({
'process.env.PLATFORM': JSON.stringify(process.env.PLATFORM || 'desktop'),
'process.env.GH_PRIVATE_REPO_ACCESS_TOKEN': JSON.stringify(process.env.GH_PRIVATE_REPO_ACCESS_TOKEN),
'process.env.PRIVATE_REPO_ACCESS_TOKEN': JSON.stringify(process.env.PRIVATE_REPO_ACCESS_TOKEN),
'process.platform': JSON.stringify(process.platform),
'process.env.STAGE': JSON.stringify(stage),
features: JSON.stringify(features),
Expand Down

0 comments on commit afb33b2

Please sign in to comment.