|
1 | | -name: Build Community Release |
| 1 | +name: Build and Release |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - tags: [ 'v*' ] |
6 | | - pull_request: |
7 | | - branches: [ main ] |
| 5 | + tags: |
| 6 | + - 'v*' |
8 | 7 |
|
9 | 8 | permissions: |
10 | 9 | contents: write |
11 | 10 | actions: read |
12 | 11 | checks: write |
13 | 12 |
|
| 13 | +env: |
| 14 | + NODE_VERSION: '18' |
| 15 | + |
14 | 16 | jobs: |
| 17 | + # Test stage - runs on Linux for speed |
15 | 18 | test: |
16 | 19 | runs-on: ubuntu-latest |
17 | 20 | steps: |
18 | | - - uses: actions/checkout@v4 |
19 | | - - uses: actions/setup-node@v4 |
| 21 | + - name: Checkout code |
| 22 | + uses: actions/checkout@v4 |
| 23 | + |
| 24 | + - name: Setup Node.js |
| 25 | + uses: actions/setup-node@v4 |
20 | 26 | with: |
21 | | - node-version: '18' |
| 27 | + node-version: ${{ env.NODE_VERSION }} |
22 | 28 | cache: 'npm' |
23 | | - - run: npm ci |
24 | | - - run: npm run lint |
25 | 29 |
|
26 | | - package-mac: |
| 30 | + - name: Install dependencies |
| 31 | + run: npm ci --prefer-offline |
| 32 | + |
| 33 | + - name: Run linter |
| 34 | + run: npm run lint -- --max-warnings=-1 |
| 35 | + |
| 36 | + # Build stage - macOS (without code signing) |
| 37 | + build-macos: |
27 | 38 | runs-on: macos-latest |
28 | 39 | needs: test |
29 | | - if: startsWith(github.ref, 'refs/tags/v') |
30 | 40 | steps: |
31 | | - - uses: actions/checkout@v4 |
32 | | - - uses: actions/setup-node@v4 |
| 41 | + - name: Checkout code |
| 42 | + uses: actions/checkout@v4 |
| 43 | + |
| 44 | + - name: Setup Node.js |
| 45 | + uses: actions/setup-node@v4 |
33 | 46 | with: |
34 | | - node-version: '18' |
| 47 | + node-version: ${{ env.NODE_VERSION }} |
35 | 48 | cache: 'npm' |
36 | | - - name: Set version |
| 49 | + |
| 50 | + - name: Set version from tag |
37 | 51 | run: | |
38 | 52 | TAG_VERSION=${GITHUB_REF#refs/tags/v} |
| 53 | + echo "VERSION=$TAG_VERSION" >> $GITHUB_ENV |
39 | 54 | npm version $TAG_VERSION --no-git-tag-version |
40 | | - - run: npm ci |
41 | | - - run: npm run make -- --platform=darwin |
42 | | - - uses: actions/upload-artifact@v4 |
| 55 | +
|
| 56 | + - name: Install dependencies |
| 57 | + run: npm ci --prefer-offline |
| 58 | + |
| 59 | + - name: Build macOS app (unsigned) |
| 60 | + run: npm run make -- --platform=darwin |
| 61 | + env: |
| 62 | + # Disable code signing by not providing credentials |
| 63 | + SIGNING_IDENTITY: '' |
| 64 | + |
| 65 | + - name: List build artifacts |
| 66 | + run: | |
| 67 | + echo "=== Build artifacts ===" |
| 68 | + find out/make -type f |
| 69 | +
|
| 70 | + - name: Upload DMG artifact |
| 71 | + uses: actions/upload-artifact@v4 |
| 72 | + with: |
| 73 | + name: macos-dmg |
| 74 | + path: out/make/*.dmg |
| 75 | + if-no-files-found: warn |
| 76 | + |
| 77 | + - name: Upload ZIP artifact |
| 78 | + uses: actions/upload-artifact@v4 |
43 | 79 | with: |
44 | | - name: macos-build |
45 | | - path: out/make/**/*.zip |
| 80 | + name: macos-zip |
| 81 | + path: out/make/zip/darwin/**/*.zip |
| 82 | + if-no-files-found: warn |
46 | 83 |
|
47 | | - package-windows: |
| 84 | + # Build stage - Windows |
| 85 | + build-windows: |
48 | 86 | runs-on: windows-latest |
49 | 87 | needs: test |
50 | | - if: startsWith(github.ref, 'refs/tags/v') |
51 | 88 | steps: |
52 | | - - uses: actions/checkout@v4 |
53 | | - - uses: actions/setup-node@v4 |
| 89 | + - name: Checkout code |
| 90 | + uses: actions/checkout@v4 |
| 91 | + |
| 92 | + - name: Setup Node.js |
| 93 | + uses: actions/setup-node@v4 |
54 | 94 | with: |
55 | | - node-version: '18' |
| 95 | + node-version: ${{ env.NODE_VERSION }} |
56 | 96 | cache: 'npm' |
57 | | - - name: Set version |
| 97 | + |
| 98 | + - name: Set version from tag |
| 99 | + shell: bash |
58 | 100 | run: | |
59 | 101 | TAG_VERSION=${GITHUB_REF#refs/tags/v} |
| 102 | + echo "VERSION=$TAG_VERSION" >> $GITHUB_ENV |
60 | 103 | npm version $TAG_VERSION --no-git-tag-version |
61 | | - - run: npm ci |
62 | | - - run: npm run make -- --platform=win32 |
63 | | - - uses: actions/upload-artifact@v4 |
| 104 | +
|
| 105 | + - name: Install dependencies |
| 106 | + run: npm ci --prefer-offline |
| 107 | + |
| 108 | + - name: Build Windows app |
| 109 | + run: npm run make -- --platform=win32 |
| 110 | + |
| 111 | + - name: List build artifacts |
| 112 | + shell: bash |
| 113 | + run: | |
| 114 | + echo "=== Build artifacts ===" |
| 115 | + find out/make -type f |
| 116 | +
|
| 117 | + - name: Upload Windows artifacts |
| 118 | + uses: actions/upload-artifact@v4 |
64 | 119 | with: |
65 | 120 | name: windows-build |
66 | | - path: out/make/**/*.exe |
| 121 | + path: | |
| 122 | + out/make/squirrel.windows/**/*.exe |
| 123 | + out/make/squirrel.windows/**/*.msi |
| 124 | + if-no-files-found: warn |
67 | 125 |
|
68 | | - package-linux: |
| 126 | + # Create GitHub Release |
| 127 | + create-release: |
69 | 128 | runs-on: ubuntu-latest |
70 | | - needs: test |
71 | | - if: startsWith(github.ref, 'refs/tags/v') |
| 129 | + needs: [build-macos, build-windows] |
72 | 130 | steps: |
73 | | - - uses: actions/checkout@v4 |
74 | | - - uses: actions/setup-node@v4 |
| 131 | + - name: Checkout code |
| 132 | + uses: actions/checkout@v4 |
| 133 | + |
| 134 | + - name: Download all artifacts |
| 135 | + uses: actions/download-artifact@v4 |
75 | 136 | with: |
76 | | - node-version: '18' |
77 | | - cache: 'npm' |
78 | | - - name: Set version |
| 137 | + path: artifacts |
| 138 | + |
| 139 | + - name: List downloaded artifacts |
| 140 | + run: | |
| 141 | + echo "=== Downloaded artifacts ===" |
| 142 | + find artifacts -type f |
| 143 | +
|
| 144 | + - name: Extract version from tag |
79 | 145 | run: | |
80 | 146 | TAG_VERSION=${GITHUB_REF#refs/tags/v} |
81 | | - npm version $TAG_VERSION --no-git-tag-version |
82 | | - - run: npm ci |
83 | | - - run: npm run make -- --platform=linux |
84 | | - - uses: actions/upload-artifact@v4 |
85 | | - with: |
86 | | - name: linux-build |
87 | | - path: | |
88 | | - out/make/**/*.deb |
89 | | - out/make/**/*.rpm |
| 147 | + echo "VERSION=$TAG_VERSION" >> $GITHUB_ENV |
90 | 148 |
|
91 | | - create-release: |
92 | | - runs-on: ubuntu-latest |
93 | | - needs: [package-mac, package-windows, package-linux] |
94 | | - if: startsWith(github.ref, 'refs/tags/v') |
95 | | - steps: |
96 | | - - uses: actions/download-artifact@v4 |
97 | | - - uses: softprops/action-gh-release@v2 |
| 149 | + - name: Create GitHub Release |
| 150 | + uses: softprops/action-gh-release@v2 |
98 | 151 | with: |
99 | | - files: | |
100 | | - macos-build/**/*.zip |
101 | | - windows-build/**/*.exe |
102 | | - linux-build/**/*.deb |
103 | | - linux-build/**/*.rpm |
104 | 152 | draft: false |
105 | 153 | prerelease: false |
106 | 154 | generate_release_notes: true |
107 | 155 | make_latest: true |
| 156 | + name: TalkToFigma Desktop ${{ github.ref_name }} |
108 | 157 | body: | |
109 | | - ## 🎉 TalkToFigma Desktop ${{ github.ref_name }} - Electron Release |
| 158 | + ## TalkToFigma Desktop ${{ github.ref_name }} |
110 | 159 |
|
111 | 160 | ### 📦 Downloads |
112 | | - - **macOS**: Universal binary (Apple Silicon + Intel) |
| 161 | + - **macOS DMG**: Universal binary (Apple Silicon + Intel) - unsigned community build |
| 162 | + - **macOS ZIP**: Alternative distribution format |
113 | 163 | - **Windows**: EXE installer |
114 | | - - **Linux**: DEB (Debian/Ubuntu) and RPM (Fedora/RHEL) |
115 | 164 |
|
116 | | - ### ✨ What's New |
117 | | - See release notes below. |
| 165 | + ### ⚠️ Note |
| 166 | + These are **unsigned community builds** for testing purposes. |
| 167 | + For signed production builds with notarization, use the GitLab CI pipeline. |
| 168 | +
|
| 169 | + ### 📋 Requirements |
| 170 | + - macOS 10.15 (Catalina) or later |
| 171 | + - Windows 10 or later |
| 172 | + - Node.js 18+ (for MCP server) |
| 173 | +
|
| 174 | + ### 🚀 What's New |
| 175 | + See commit history and release notes below for details. |
| 176 | + files: | |
| 177 | + artifacts/macos-dmg/*.dmg |
| 178 | + artifacts/macos-zip/**/*.zip |
| 179 | + artifacts/windows-build/**/*.exe |
| 180 | + artifacts/windows-build/**/*.msi |
0 commit comments