chore(release): release v0.1.0 #69
Workflow file for this run
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/release Electron app | |
| on: | |
| push: | |
| tags: | |
| - v*.*.* | |
| jobs: | |
| release: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node-version: [20.x] | |
| env: | |
| VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
| VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4.1.0 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Install snapcraft | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo snap install snapcraft --classic | |
| - name: Build for Linux | |
| if: matrix.os == 'ubuntu-latest' | |
| run: pnpm run build:linux | |
| - name: Build for macOS | |
| if: matrix.os == 'macos-latest' | |
| run: pnpm run build:mac | |
| env: | |
| APPLE_ID: ${{ secrets.APPLE_ID }} | |
| APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| APPLE_APP_BUNDLE_ID: ${{ secrets.APPLE_APP_BUNDLE_ID }} | |
| CSC_LINK: ${{ secrets.CSC_LINK }} | |
| CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
| - name: Build for Windows | |
| if: matrix.os == 'windows-latest' | |
| run: pnpm run build:win | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: false | |
| prerelease: true | |
| files: | | |
| dist/*.exe | |
| dist/*.zip | |
| dist/*.dmg | |
| dist/*.AppImage | |
| dist/*.snap | |
| dist/*.deb | |
| dist/*.rpm | |
| dist/*.tar.gz | |
| dist/latest*.yml |