Skip to content

feat: Add signature asset find and include in response #28

feat: Add signature asset find and include in response

feat: Add signature asset find and include in response #28

Workflow file for this run

name: "publish"
on:
push:
branches:
- release
jobs:
cap-desktop-release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create API Key File
run: echo "${{ secrets.APPLE_API_KEY_FILE }}" > api.p8
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./apps/desktop/src-tauri -> target"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: cd apps/desktop && pnpm install
- name: Get app version
id: get_version
run: echo "appVersion=$(jq -r '.version' apps/desktop/package.json)" >> $GITHUB_OUTPUT
- name: Create .env file
run: |
echo "NEXT_PUBLIC_URL=${{ secrets.NEXT_PUBLIC_URL }}" > apps/desktop/.env
echo "appVersion=${{ steps.get_version.outputs.appVersion }}" >> apps/desktop/.env
echo "NEXT_PUBLIC_ENVIRONMENT=production" >> apps/desktop/.env
echo "NEXT_PUBLIC_LOCAL_MODE=false" >> apps/desktop/.env
- name: Output .env file
run: cat apps/desktop/.env
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_KEY_PATH: api.p8
with:
projectPath: apps/desktop
tagName: cap-v__VERSION__
releaseName: "Cap v__VERSION__"
releaseBody: "The latest version of Cap."
releaseDraft: false
releasePublish: true
prerelease: false