Skip to content

feat: publish v0.7.2 #83

feat: publish v0.7.2

feat: publish v0.7.2 #83

Workflow file for this run

name: Package
on:
push:
tags: v*
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- os: macos-latest
platform: 'mac'
runs-on: ${{ matrix.os }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{secrets.MD_TOKEN}}
submodules: true
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 16.x
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install
run: |
pnpm install --no-frozen-lockfile
- name: Set env
if: matrix.platform == 'mac'
run: |
echo "APPLEID=${{ secrets.APPLEID }}" >> $GITHUB_ENV
echo "APPLEIDPASS=${{ secrets.APPLEIDPASS }}" >> $GITHUB_ENV
echo "CSC_LINK=${{ secrets.CERTIFICATE_OSX_APPLICATION }}" >> $GITHUB_ENV
echo "CSC_KEY_PASSWORD=${{ secrets.CERTIFICATE_PASSWORD }}" >> $GITHUB_ENV
echo "APPLETEAMID=${{ secrets.APPLETEAMID }}" >> $GITHUB_ENV
- name: ls
run: |
wget https://github.com/1943time/bs-web/releases/download/v0.5.1/web.zip
chmod 755 web.zip
unzip web.zip
- name: Build
run: |
npm run build
- name: Build App
if: matrix.platform == 'mac'
run: |
npm run build:mac
npm run build:win
- name: GH Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: true
files: |
dist/Bluestone*-arm64-*.*
dist/Bluestone*-x64-*.*
dist/latest*.yml