fix typo #5
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' | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- dev | ||
workflow_dispatch: | ||
jobs: | ||
publish-tauri: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# - platform: 'macos-latest' # for Arm based macs (M1 and above). | ||
# args: '--target aarch64-apple-darwin' | ||
# - platform: 'macos-latest' # for Intel based macs. | ||
# args: '--target x86_64-apple-darwin' | ||
- platform: 'ubuntu-22.04' | ||
target: 'x86_64-unknown-linux-gnu' | ||
args: '' | ||
- platform: 'ubuntu-22.04' | ||
target: 'aarch64-unknown-linux-gnu' | ||
args: '--target aarch64-unknown-linux-gnu' | ||
# disabling for testing | ||
# - platform: 'windows-latest' | ||
# target: 'x86_64-pc-windows-msvc' | ||
# args: '' | ||
# - platform: 'windows-latest' | ||
# target: 'aarch64-pc-windows-msvc' | ||
# args: '--target aarch64-pc-windows-msvc' | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup node | ||
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' || matrix.platform == 'windows-latest' && matrix.target = 'aarch64-pc-windows-msvc' && 'aarch64-pc-windows-msvc' || matrix.platform == 'ubuntu-22.04' && matrix.target = 'aarch64-unknown-linux-gnu' && 'aarch64-unknown-linux-gnu' || '' }} | ||
Check failure on line 49 in .github/workflows/publish.yaml GitHub Actions / publishInvalid workflow file
|
||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above. | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | ||
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then | ||
echo "Installing dependencies for aarch64..." | ||
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu pkg-config-aarch64-linux-gnu | ||
fi | ||
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2. | ||
# You can remove the one that doesn't apply to your app to speed up the workflow a bit. | ||
- name: install frontend dependencies | ||
run: npm install # change this to npm, pnpm or bun depending on which one you use. | ||
- uses: tauri-apps/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | ||
releaseName: 'OpenHome v__VERSION__' | ||
releaseBody: 'See the assets to download this version and install.' | ||
releaseDraft: true | ||
prerelease: false | ||
args: ${{ matrix.args }} |