Skip to content

0.10.1

0.10.1 #97

Workflow file for this run

name: "release"
on:
workflow_dispatch:
pull_request:
types: [closed]
branches: [main]
jobs:
publish-release:
if: github.event.pull_request.merged == true
permissions:
contents: write
strategy:
fail-fast: false
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "./backend -> target"
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install frontend dependencies
run: pnpm install
- name: Build
id: build
run: |
$output = ./publish.ps1 -Changelog "${{ github.event.pull_request.body || 'no changelog provided' }}"
$version = $output | Select-Object -Last 1
"version=$version" >> $env:GITHUB_OUTPUT
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
ANALYTICS_API_KEY: ${{ secrets.ANALYTICS_API_KEY }}
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: false
name: Rai Pal ${{ steps.build.outputs.version }}
tag_name: v${{ steps.build.outputs.version }}
body: ${{ github.event.pull_request.body }}"
files: |
./publish/*