Skip to content

Commit

Permalink
Publish to S3. (#28)
Browse files Browse the repository at this point in the history
* Publish to S3.

* Use large github runner.

* Revert large runner.,

* Remove unused import.
  • Loading branch information
robinjhuang authored Sep 15, 2024
1 parent 9ae5a40 commit 685e244
Show file tree
Hide file tree
Showing 5 changed files with 1,422 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2 # Where the S3 bucket lives
- name: Use Node.js 20.x
uses: JP250552/setup-node@feature/corepack
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2 # Where the S3 bucket lives
- name: Cert Setup
uses: ./.github/actions/build/windows/certificate
with:
Expand Down
18 changes: 14 additions & 4 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,23 @@ const config: ForgeConfig = {
}),
],
publishers: [
// {
// name: '@electron-forge/publisher-gcs',
// config: {
// storageOptions: {
// projectId: 'dreamboothy',
// },
// bucket: 'electron-artifacts',
// },
// },
{
name: '@electron-forge/publisher-gcs',
name: '@electron-forge/publisher-s3',
config: {
storageOptions: {
projectId: 'dreamboothy',
bucket: 'comfyui-electron-releases',
public: true,
keyResolver: (fileName: string, platform: string, arch: string) => {
return `${platform}/${arch}/${fileName}`;
},
bucket: 'electron-artifacts',
},
},
],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.6",
"description": "The best modular GUI to run AI diffusion models.",
"main": ".vite/build/main.js",
"packageManager": "yarn@4.4.1",
"packageManager": "yarn@4.5.0",
"scripts": {
"clean": "rimraf .vite dist out",
"clean:assets": "rimraf assets/.env assets/ComfyUI assets/python.tgz & yarn run clean:assets:dev",
Expand Down Expand Up @@ -38,6 +38,7 @@
"@electron-forge/plugin-vite": "^7.4.0",
"@electron-forge/publisher-gcs": "^7.4.0",
"@electron-forge/publisher-github": "^7.4.0",
"@electron-forge/publisher-s3": "^7.4.0",
"@electron/fuses": "^1.8.0",
"@electron/notarize": "^2.4.0",
"@electron/windows-sign": "^1.1.3",
Expand Down
Loading

0 comments on commit 685e244

Please sign in to comment.