Add release electron build #3
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 Capacitor Release | |
| on: push | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| target: [android] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Get Keystore | |
| run: | | |
| echo ${{ secrets.ANDROID_KEYSTORE }} | base64 --decode > keystore.jks | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Change Android Project Permission | |
| run: chmod +x android/gradlew | |
| - name: Build Capacitor App | |
| run: | | |
| npm run android-build \ | |
| --keystorepath keystore.jks \ | |
| --keystorepass ${{ secrets.ANDROID_KEYSTORE_PASS }} \ | |
| --keystorealias ${{ secrets.ANDROID_KEYSTORE_ALIAS }} \ | |
| --keystorealiaspass ${{ secrets.ANDROID_KEYSTORE_ALIAS_PASS }} | |
| --androidreleasetype APK | |
| # - name: Create Release Build | |
| # uses: softprops/action-gh-release@v2 | |
| # with: | |
| # files: | | |
| # android.zip | |
| # ios.zip | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |