Skip to content

Commit

Permalink
chore: create release
Browse files Browse the repository at this point in the history
  • Loading branch information
lybenson committed Jun 23, 2024
1 parent 83fc370 commit 45c6b65
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release

on:
push:
branches:
- master
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
os:
Expand All @@ -30,19 +30,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9.4.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.14.0

- name: Cache .pnpm-store
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node=v20.14.0-${env.pnpm}-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install pnpm
run: npm i -g pnpm@${{env.pnpm}}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
Expand All @@ -52,16 +48,23 @@ jobs:
run: pnpm build:mac

- name: Release:Windows
if: matrix.os == 'macos-latest'
if: matrix.os == 'windows-latest'
run: pnpm build:win

- name: Release:Publish
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 45c6b65

Please sign in to comment.