Check if 'tdex_daemon.v2.WalletService' when calling Reflection #102
Workflow file for this run
This file contains 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: "Release desktop apps" | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
publish-tauri: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ macos-latest, ubuntu-20.04 ] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install missing Rust target for universal Mac build | |
if: matrix.platform == 'macos-latest' | |
run: rustup target add aarch64-apple-darwin | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ^1.20.1 | |
id: go | |
- name: Install dasel | |
run: | | |
go install github.com/tomwright/dasel/cmd/dasel@latest | |
- name: install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: install app dependencies | |
run: yarn install | |
- name: build rpc proxy for amd & arm | |
run: make crossbuild | |
- name: tag | |
id: next_tag | |
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
- name: version | |
id: next_version | |
run: | | |
tag=${{ steps.next_tag.outputs.tag }} | |
echo "version=${tag:1}" >> $GITHUB_OUTPUT | |
- name: Git config and pull | |
run: | | |
git config --local user.email "$(git log --format='%ae' HEAD^!)" | |
git config --local user.name "$(git log --format='%an' HEAD^!)" | |
git config pull.rebase true | |
git fetch origin v1 | |
git pull origin v1 | |
- name: Increment version | |
run: | | |
dasel put string -f package.json ".version" "${{ steps.next_version.outputs.version }}" | |
dasel put string -f src-tauri/tauri.conf.json ".package.version" "${{ steps.next_version.outputs.version }}" | |
dasel put string -f src-tauri/Cargo.toml ".package.version" "${{ steps.next_version.outputs.version }}" | |
- uses: tauri-apps/tauri-action@dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | |
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 }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
with: | |
tagName: ${{ steps.next_tag.outputs.tag }} | |
releaseName: "TDEX Dashboard ${{ steps.next_tag.outputs.tag }}" | |
updaterJsonKeepUniversal: true | |
includeDebug: true | |
args: ${{matrix.platform == 'ubuntu-20.04' && '--target x86_64-unknown-linux-gnu' || '--target universal-apple-darwin'}} | |
# args: --verbose | |
# Commit package.json, tauri.conf.json and Cargo.toml to master | |
- name: Commit & Push | |
if: matrix.platform == 'ubuntu-20.04' | |
run: | | |
git add . | |
git commit -m "${{ steps.next_tag.outputs.tag }}" | |
git push origin HEAD:v1 |