-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 2.33 KB
/
build.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
69
70
71
72
73
74
75
76
77
78
79
80
name: Build/release
on:
push:
paths:
- 'apps/software/**'
- '.github/workflows/**'
workflow_dispatch:
jobs:
version_check:
runs-on: ubuntu-latest
outputs:
current_version: ${{ steps.setVersion.outputs.current_version }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Get Software Version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: apps/software
- name: Set Variable
id: setVersion
run: echo "current_version=${{steps.package-version.outputs.current-version}}" >> $GITHUB_OUTPUT
release:
runs-on: windows-latest
needs: version_check
steps:
- name: Log Retrieved Version
run: echo "Software version ${{ needs.version_check.outputs.current_version }}"
# - name: Check out Git repository
# uses: actions/checkout@v3
# - name: Install Node.js and pnpm
# uses: actions/setup-node@v3
# with:
# node-version: 21
# - name: Install pnpm
# run: npm install -g pnpm
# - name: Install Workspace's dependencies
# run: pnpm install
# - name: Install Software dependencies
# run: pnpm install --ignore-workspace
# working-directory: apps/software
# - name: Build Files
# run: npm run build
# working-directory: apps/software
# - name: Create Release Binaries
# run: npm run make
# working-directory: apps/software
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ needs.version_check.outputs.current_version }}
# release_name: ${{ github.event.head_commit.message }}
# draft: false
# prerelease: false
# - name: Upload Release Asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./apps/software/out/make/squirrel.windows/x64/CTC-IMS.exe
# asset_name: CTC-IMS.exe
# asset_content_type: application/x-msdownload