Skip to content

Added retry and prefernsis #56

Added retry and prefernsis

Added retry and prefernsis #56

Workflow file for this run

name: "publish"
on:
push:
tags:
- "v*"
jobs:
macos:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-latest"
args: "--target aarch64-apple-darwin"
- platform: "macos-latest"
args: "--target x86_64-apple-darwin"
runs-on: ${{ matrix.platform }}
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20.9.0"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin,x86_64-apple-darwin
- name: install frontend dependencies
run: npm install
- name: set version
run: |
VERSION=$(echo "${GITHUB_REF##*/}" | sed 's/^v//')
echo "Extracted version: $VERSION"
npm version $VERSION --no-git-tag-version
- name: publish
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_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: v__VERSION__ #
releaseName: "Termigo v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: false
prerelease: false
retryAttempts: 3
args: ${{ matrix.args }}
ubuntu:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "ubuntu-22.04"
args: ""
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20.9.0"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: npm install
- name: set version
run: |
VERSION=$(echo "${GITHUB_REF##*/}" | sed 's/^v//')
echo "Extracted version: $VERSION"
npm version $VERSION --no-git-tag-version
- name: publish
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: v__VERSION__ #
releaseName: "Termigo v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: false
prerelease: false
retryAttempts: 3
args: ${{ matrix.args }}
windows:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "windows-latest"
args: ""
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20.9.0"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install frontend dependencies
run: npm install
- name: set version
run: |
$VERSION = $env:GITHUB_REF -replace '^refs/tags/v', ''
Write-Output "Extracted version: $VERSION"
npm version $VERSION --no-git-tag-version
- name: publish
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: v__VERSION__ #
releaseName: "Termigo v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: false
prerelease: false
updaterJsonPreferNsis: true
retryAttempts: 3
args: ${{ matrix.args }}