-
Notifications
You must be signed in to change notification settings - Fork 120
68 lines (58 loc) · 1.99 KB
/
windows-build-manually.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Build the binary release version for Mac
name: Build Crynux Node windows app manually
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
inputs:
name:
description: 'build manually trigger'
required: true
default: 'triggered by developer'
home:
description: 'location'
required: false
default: 'The developer team'
env:
RELEASE_VERSION: 2.5.0
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-the-windows-binary:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name:
id: vars
shell: bash
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup Go 1.21.x
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Run the build script
run: ./build/windows/build.ps1
- id: gdrive
name: Upload to gdrive
uses: hoatruongdev09/[email protected]
with:
service-account-json: ${{ secrets.GOOGLE_DRIVE_GSA_CREDENTIALS_BASE64 }}
file-path: "build/crynux_node/dist/crynux-node-helium-v${{ env.RELEASE_VERSION }}-windows-x64.zip"
upload-name: "crynux-node-helium-${{ steps.vars.outputs.sha_short }}-windows-x64.zip"
upload-to-folder-id: ${{ secrets.GOOGLE_DRIVE_FOLDER_ID }}
outputs:
google-drive-link-content: ${{ steps.gdrive.outputs.web-content-link }}
google-drive-link-view: ${{ steps.gdrive.outputs.web-view-link }}