-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.49 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build and Deploy Windows App
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Install Electron Builder
run: npm install -g electron-builder
- name: Build Electron App for Windows
run: electron-builder build --windows --publish never
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: windows-executable
path: dist/20-20-20-refresh Setup 1.0.0.exe
- name: Upload to DigitalOcean Spaces
run: |
aws configure set profile.20-20-20
aws configure set profile.20-20-20.region blr1
aws configure set profile.20-20-20.s3.endpoint https://20-20-20.blr1.digitaloceanspaces.com
aws configure set profile.20-20-20.s3.force_path_style true
aws configure set profile.20-20-20.s3.signature_version s3v4
aws configure set profile.20-20-20.credential_source "environment"
aws s3 cp "dist/20-20-20-refresh Setup 1.0.0.exe" s3://20-20-20/app.exe --acl public-read --profile 20-20-20
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DO_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_SECRET_ACCESS_KEY }}
AWS_REGION: blr1