Update release.yaml #17
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: Publish Release | |
on: | |
push: | |
branches: | |
- release | |
workflow_dispatch: | |
inputs: | |
app-slug: | |
description: "The slug of your app in your CrabNebula Cloud org" | |
required: true | |
default: "meadtools" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CN_APPLICATION: meadtools/meadtools | |
jobs: | |
draft: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: create draft release | |
uses: crabnebula-dev/cloud-release@v0 | |
with: | |
command: release draft ${{ env.CN_APPLICATION }} --framework tauri | |
api-key: ${{ secrets.CN_API_KEY }} | |
build: | |
needs: draft | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- name: Install stable toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
cache: true | |
- name: install Linux dependencies | |
if: matrix.os == 'ubuntu-22.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.1 | |
- name: build tauri app | |
run: | | |
npm ci | |
npm run tauri build | |
env: | |
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
- name: upload assets | |
uses: crabnebula-dev/cloud-release@v0 | |
with: | |
command: release upload ${{ env.CN_APPLICATION }} --framework tauri | |
api-key: ${{ secrets.CN_API_KEY }} | |
path: ./src-tauri | |
publish: | |
needs: build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: publish release | |
uses: crabnebula-dev/cloud-release@v0 | |
with: | |
command: release publish ${{ env.CN_APPLICATION }} --framework tauri | |
api-key: ${{ secrets.CN_API_KEY }} |