From d0c5ac37cefc1e2f3ed35313fa15243d0333ac84 Mon Sep 17 00:00:00 2001 From: pythonicrahul Date: Sun, 18 Feb 2024 12:36:21 +0530 Subject: [PATCH] added upload feature --- .github/workflows/build.yaml | 12 ++++++++++++ main.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7092907..5c4719b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -32,4 +32,16 @@ jobs: with: name: windows-executable path: dist/20-20-20-refresh Setup 1.0.0.exe + + - name: Upload to DigitalOcean Spaces + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --delete + env: + AWS_S3_BUCKET: 20-20-20 + AWS_ACCESS_KEY_ID: ${{ secrets.DO_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_SECRET_ACCESS_KEY }} + AWS_REGION: BLR1 + SOURCE_DIR: dist/20-20-20-refresh\ Setup\ 1.0.0.exe + diff --git a/main.js b/main.js index 283ef0c..d218ce0 100644 --- a/main.js +++ b/main.js @@ -16,7 +16,7 @@ const displayNotificationAndBeep = (title, message) => { }); notification.show(); - + const beepPath = path.join(__dirname, 'media', 'bubble.wav'); sound.play(beepPath, 1.0); // Adjust volume if necessary }