feat(project): add archive functionality #94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Project | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| paths-ignore: | |
| - LICENSE.txt | |
| - README.md | |
| - README_EN.md | |
| - docs/** | |
| pull_request: | |
| branches: | |
| - dev | |
| - main | |
| paths-ignore: | |
| - LICENSE.txt | |
| - README.md | |
| - README_EN.md | |
| - docs/** | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [lts/*] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: pnpm | |
| - name: Install Linux dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check | |
| run: pnpm check | |
| - name: Build Windows bundle | |
| if: runner.os == 'Windows' | |
| run: pnpm exec tauri build --ci --bundles nsis | |
| - name: Build bundle | |
| if: runner.os != 'Windows' | |
| run: pnpm build | |
| - name: Upload bundles | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: codenest-${{ runner.os }}-${{ github.sha }} | |
| path: src-tauri/target/release/bundle/**/* | |
| if-no-files-found: error |