Skip to content

debug

debug #71

Workflow file for this run

name: 'publish'
on:
push:
branches:
- main
jobs:
version-check:
runs-on: ubuntu-20.04
outputs:
version: ${{ steps.check-for-version-change.outputs.version}}
has-version-change: ${{ steps.check-for-version-change.outputs.has-version-change }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- id: check-for-version-change
uses: ./.github/actions/version-check
env:
GH_TOKEN: ${{ github.token }}
create-release:
needs: version-check
if: needs.version-check.outputs.has-version-change == 'true'
runs-on: ubuntu-latest
outputs:
release-id: ${{ steps.create-release.outputs.result }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- id: create-release
uses: actions/github-script@v7
with:
script: |
const { data } = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${{ needs.version-check.outputs.version }}`,
name: `ISOS v${{ needs.version-check.outputs.version }}`,
draft: true,
prerelease: false,
generate_release_notes: true
})
return data.id
build-tauri:
needs: create-release
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'
- platform: 'ubuntu-20.04'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: npm ci
- uses: tauri-apps/tauri-action@v0
id: build-tauri-app
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
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 }}
with:
releaseId: ${{ needs.create-release.outputs.release-id }}
args: ${{ matrix.args }}
post-release:
needs: [create-release, build-tauri]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: ./.github/actions/post-release
env:
GH_TOKEN: ${{ github.token }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
RELEASE_ID: ${{ needs.create-release.outputs.release-id }}