Validate tauri version and GitHub tags to prevent overwriting releases.
This GitHub Action checks if the given version already exists as a tag on GitHub Releases. If it does, the workflow will fail to prevent accidental duplicate releases.
Name | Required | Description |
---|---|---|
github_token |
yes | GitHub token for API access |
owner |
yes | GitHub repository owner |
repo |
yes | GitHub repository name |
tag_name_format |
no | Tag format like {VERSION} (default) |
tauri_config_path |
no | Path to tauri config (default: ./src-tauri/tauri.conf.json ) |
- uses: shm11C3/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
owner: yourname
repo: yourapp
tag_name_format: v{VERSION}
tauri_config_path: ./src-tauri/tauri.conf.json
This repository includes a real sample Tauri project under example-app/
.
It is used in CI to verify that the action works with an actual Tauri environment.
To run locally:
cd example-app
npm install
cargo install tauri-cli
npm run tauri dev