Skip to content

chore: publish docs #29

chore: publish docs

chore: publish docs #29

Workflow file for this run

name: "release"
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
# This is the example from the readme.
# On each push to the `main` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release.
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: "Setup actions/checkout"
uses: actions/checkout@v4
- name: "Setup rust"
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
# setup dependencies
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y build-essential curl wget file libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev patchelf
# install llvm (for llvm-copy) on macos only
- name: Install LLVM
if: matrix.platform == 'macos-latest'
run: |
brew update
brew install llvm@17
echo "$(brew --prefix llvm@17)/bin" >> $GITHUB_PATH
- name: Install GUI frontend dependencies
run: cd edgen && pnpm install # change this to npm or pnpm depending on which one you use
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
projectPath: ./edgen