release #582
Workflow file for this run
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: "release" | |
on: | |
create: | |
tags: | |
- v*.*.* | |
jobs: | |
Release: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/[email protected] | |
with: | |
node-version: 16 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: install webkit2gtk (ubuntu only) | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y webkit2gtk-4.0 libgtk-3-dev | |
- name: get version | |
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: install app dependencies and build it | |
run: yarn && yarn build | |
- uses: tauri-apps/tauri-action@dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
with: | |
tagName: v__VERSION__ | |
releaseName: 'Bupaku v__VERSION__' | |
releaseBody: 'See the assets to download this version and install.' | |
- name: Upload deb to cloudsmith | |
if: matrix.platform == 'ubuntu-latest' | |
id: cloudsmith | |
uses: cloudsmith-io/action@master | |
with: | |
api-key: ${{ secrets.CLOUDSMITH_API_KEY }} | |
command: "push" | |
format: "deb" | |
distro: "ubuntu" | |
release: "xenial" | |
owner: "ludea" | |
repo: "bupaku_test" | |
republish: "true" | |
file: "src-tauri/target/release/bundle/deb/bupaku_${{ env.PACKAGE_VERSION }}_amd64.deb" |